path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
docs/src/sections/FormSection.js | Sipree/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function FormSection() {
return (
<div className="bs-docs-section">
<h1 className="page-header">
<Anch... |
examples/demos/rendering.js | Incubity/react-big-calendar | import React from 'react';
import BigCalendar from 'react-big-calendar';
import events from '../events';
function Event({ event }) {
return (
<span>
<strong>
{event.title}
</strong>
{ event.desc && (': ' + event.desc)}
</span>
)
}
function EventAgenda({ event }) {
return <span>
... |
node_modules/npm-run-all/node_modules/babel-runtime/helpers/jsx.js | chszard/chszard.github.io | "use strict";
exports.__esModule = true;
var _for = require("../core-js/symbol/for");
var _for2 = _interopRequireDefault(_for);
var _symbol = require("../core-js/symbol");
var _symbol2 = _interopRequireDefault(_symbol);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; ... |
tests/client/disco/containers/TestDiscoPane.js | squarewave/addons-frontend | import React from 'react';
import { Simulate, renderIntoDocument } from 'react-addons-test-utils';
import { findDOMNode } from 'react-dom';
import { loadEntities } from 'core/actions';
import {
ADDON_TYPE_EXTENSION,
GLOBAL_EVENTS,
INSTALL_STATE,
} from 'core/constants';
import * as InfoDialog from 'core/containe... |
src/components/DatePicker/DatePicker-story.js | joshblack/carbon-components-react | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import { storiesOf } from '@storybook/react';
import { action, decorateAction } from '@storybook/addon-actions';
... |
sourcestats/webpack/components/App.js | Fizzadar/SourceServerStats | // Source Server Stats
// File: sourcestats/webpack/components/app.js
// Desc: app container
import React from 'react';
import { Link } from 'react-router';
export class AppContainer extends React.Component {
render() {
return (<div>
<div id="header">
<h1><a href="/">
... |
ajax/libs/material-ui/5.0.0-beta.2/legacy/Radio/Radio.js | cdnjs/cdnjs | import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
import _extends from "@babel/runtime/helpers/esm/extends";
import * as React from 'react';
import PropTypes from 'prop-types';
import { refType } from '@mat... |
ajax/libs/extjs/4.2.1/src/button/Manager.js | thejameskyle/cdnjs | /*
This file is part of Ext JS 4.2
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
GNU General Public License Usage
This file may be used under the terms of the GNU General Public License version 3.0 as
published by the Free Software Foundation and appearing in the file LICENSE included in... |
ajax/libs/F2/1.3.1/f2.no-bootstrap.min.js | toddmotto/cdnjs | /*! F2 - v1.3.1 - 10-15-2013 - See below for copyright and license */
(function(exports){if(!exports.F2||exports.F2_TESTING_MODE){/*!
JSON.org requires the following notice to accompany json2:
Copyright (c) 2002 JSON.org
http://json.org
Permission is hereby granted, free of charge, to any person obta... |
client/templates/layout/footer/footer.js | allpoolspa/allpoolspa.com | /*
* This is an example of a customized template.
* This footer replaces the "layoutFooter" template defined in the reactioncommerce:core package.
* https://github.com/reactioncommerce/reaction-core/blob/master/client/templates/layout/footer/footer.html
*/
Template.layoutFooter.helpers({
customSocialSettings: fu... |
ajax/libs/recompose/0.18.0/Recompose.js | joeyparrish/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["Recompose"] = facto... |
frontend/components/Shared/Select.js | IGGAMEMAKER/startup-game | import { h, Component } from 'preact';
// import React, { Component, PropTypes } from 'react';
type PropsType = {};
type StateType = {};
type ResponseType = {};
export default class Select extends Component {
render() {
// props: PropsType, state: StateType
const props = this.props;
// send info to s... |
src/components/Loading/Loading.js | labzero/lunch | import React from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Loading.scss';
const Loading = () => (
<div className={s.root}>
<div><div /></div>
<div><div /></div>
<div><div /></div>
<div><div /></div>
<div><div /></div>
</div>
);
export default w... |
fields/types/preview/PreviewColumn.js | nickhsine/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/client/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTableValue';
var PreviewColumn = React.createClass({
displayName: 'PreviewColumn',
propTypes: {
col: React.PropTypes.object,
data: Reac... |
node_modules/react-router-dom/node_modules/react-router/es/withRouter.js | amybingzhao/savings-planner-web | 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 = {... |
ajax/libs/6to5/3.1.0/browser-polyfill.js | ErikSchierboom/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/main.js | georgezee/cabango | console.log('Cabango loaded.');
import React from 'react';
import ReactDOM from 'react-dom';
import App from './containers/App';
document.addEventListener('DOMContentLoaded', function() {
ReactDOM.render(
<App/>,
document.getElementById('root')
);
});
|
src/components/Popups/Login/index.js | nahkar/react_cms | import React, { Component } from 'react';
export default class LoginPopup extends Component {
render() {
return (
<div className="login-popup popup">
<form>
<h3>Login form</h3>
<div className="row">
<input type='text' placeholder='Login' />
</div>
... |
src/aria/widgets/form/MultiSelect.js | fbasso/ariatemplates | /*
* Copyright 2012 Amadeus s.a.s.
* 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 i... |
src/pages/music/Music.js | hinzed1127/fayraysite | import React from 'react';
import './music.css';
import singleArt from '../../img/ep/ep_art.jpg';
import {LINKS} from '../../constants/Links';
export default function Music() {
return (
<div className='music-wrapper'>
<div className='music-container'>
<div>
<img
className='ep-art'
src={singl... |
src/svg-icons/device/signal-wifi-1-bar.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifi1Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/><path d="M6.67 14.86L12 21.49v.01... |
examples/redirect-using-index/app.js | MattSPalmer/react-router | import React from 'react';
import { Router, Route, IndexRoute, Link } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
{this.props.children}
</div>
);
}
});
var Index = React.createClass({
render () {
return (
<div>
<h1>You should not se... |
components/scenes/street.js | dbow/89-steps | import React from 'react';
class Street extends React.Component {
render() {
return (
<div>
<h2>The Street</h2>
<p>This will be good!!</p>
</div>
);
}
}
export default Street;
|
ajax/libs/forerunnerdb/1.3.363/fdb-core.min.js | pombredanne/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... |
ajax/libs/yui/3.5.1/event-custom-base/event-custom-base-debug.js | sjlu/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 ev... |
packages/material-ui-icons/src/GradientSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M11 9h2v2h-2V9zm-2 2h2v2H9v-2zm4 0h2v2h-2v-2zm2-2h2v2h-2V9zM7 9h2v2H7V9zm14-6H3v18h18V3zM9 18H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2zm2-7h-2v2h2v2h-2v-2h-2v2h-2v-2h-2v2H9v-2H7v2H5v-2h2v-2H5V5h14v6z" /... |
node_modules/antd/es/checkbox/Checkbox.js | prodigalyijun/demo-by-antd | import _extends from 'babel-runtime/helpers/extends';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possib... |
RNTester/js/ViewExample.js | shrutic123/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.
*
* @flow
* ... |
webpack.config.js | aldendaniels/react-router | var webpack = require('webpack');
var plugins = [
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV)
})
];
if (process.env.COMPRESS) {
plugins.push(
new webpack.optimize.UglifyJsPlugin({
compressor: {
warnings: false
}
})
);
}
module.export... |
clientSide/resources/js/lib/jquery/jquery-1.10.2.min.js | wallet77/tinydailytaskmanager | /*! 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.hasOwnProper... |
packages/material-ui-icons/src/Replay30Sharp.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z" /><path d="M9.56 13.49h.45c.21 0 .37-.05.... |
frontend/app/js/components/genericform/htmlfield.js | serverboards/serverboards | import React from 'react'
import plugin from 'app/utils/plugin'
import i18n from 'app/utils/i18n'
import Flash from 'app/flash'
import {MarkdownPreview} from 'react-marked-markdown'
class HTMLField extends React.Component {
constructor(props){
super(props)
this.state = {
loading: true,
html: "",... |
ajax/libs/angular-google-maps/1.0.9/angular-google-maps.js | samthor/cdnjs | /*
Author Nick McCready
Intersection of Objects if the arrays have something in common each intersecting object will be returned
in an new array.
*/
(function() {
_.intersectionObjects = function(array1, array2, comparison) {
var res,
_this = this;
if (comparison == null) {
compariso... |
src/browser/me/Profile.react.js | marekv69/twitterTestApp | import Component from 'react-pure-render/component';
import Helmet from 'react-helmet';
import React, {PropTypes} from 'react';
export default class Profile extends Component {
static propTypes = {
msg: PropTypes.object
};
render() {
const {msg} = this.props;
return (
<div className="profile... |
node_modules/react-icons/ti/messages.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const TiMessages = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m35 11.7h-5c0-2.8-2.2-5-5-5h-20c-2.7 0-5 2.2-5 5v11.6c0 2.8 2.3 5 5 5v5l5-5c0 2.8 2.3 5 5 5h13.3l5 5v-5h1.7c2.8 0 5-2.2 5-5v-11.6c0-2.8-2.2-5-5-5z m-30 13.3c-0.9 0-1... |
tests/routes/Home/components/HomeView.spec.js | kolyaka006/imaginarium | import React from 'react'
import { HomeView } from 'routes/Home/components/HomeView'
import { render } from 'enzyme'
describe('(View) Home', () => {
let _component
beforeEach(() => {
_component = render(<HomeView />)
})
it('Renders a welcome message', () => {
const welcome = _component.find('h4')
... |
src/routes/private/layerExample.js | nambawan/g-old | import React from 'react';
import PropTypes from 'prop-types';
import Button from '../../components/Button/Button';
import Layer from '../../components/Layer';
import Box from '../../components/Box';
class LayerExample extends React.Component {
constructor() {
super();
this.state = { openA: false, openB: fal... |
node_modules/styled-components/lib/primitives/index.js | ryotsuchiya/react_card_app | 'use strict';
exports.__esModule = true;
exports.withTheme = exports.ThemeProvider = exports.css = undefined;
var _reactPrimitives = require('react-primitives');
var _reactPrimitives2 = _interopRequireDefault(_reactPrimitives);
var _InlineStyle2 = require('../models/InlineStyle');
var _InlineStyle3 = _interopRequi... |
src/components/fields/DateField.js | shrimpliu/shradmin | import React from 'react';
import get from 'lodash/get';
import isNull from 'lodash/isNull';
import PropTypes from 'prop-types';
import moment from 'moment';
const DateField = (props) => {
const { source, record = {}, elStyle, dateFormat } = props;
const value = get(record, source);
if(isNull(value)){
return... |
src/widgets/PageInfo/PageInfo.js | sussol/mobile | import React from 'react';
import PropTypes from 'prop-types';
import { FlexRow } from '../FlexRow';
import { PageInfoColumn } from './PageInfoColumn';
import { SUSSOL_ORANGE, DARK_GREY } from '../../globalStyles';
/**
* A component to display info in a generic way at the top of a page.
* @prop {string} titleText... |
node_modules/react-overlays/lib/Portal.js | vitorgomateus/NotifyMe | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _reactDom = require('react-dom');
var _reactDom2 = _interopRequireDefault(_reactDom);
var _componentOrElement = require('react-prop-types/lib/componentOrE... |
ajax/libs/react/0.12.2/react-with-addons.js | tomsoir/cdnjs | /**
* React (with addons) v0.12.2
*/
!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.React=e()}}(fu... |
src/components/DeveloperMenu.android.js | jpkontreras/e-waste | import React from 'react';
import * as snapshot from '../utils/snapshot';
import * as auth0 from '../services/auth0';
import {
View,
Text,
TouchableOpacity,
StyleSheet
} from 'react-native';
/**
* Simple developer menu, which allows e.g. to clear the app state.
* It can be accessed through a tiny button in ... |
packages/material-ui-icons/src/SignalWifi1Bar.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z" /><path d="M6.67 14.86L12 21.49v.01l.01-.01 5.33-6.63C17.06 14.65 15.03 13... |
src/Well.js | bvasko/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const Well = React.createClass({
mixins: [BootstrapMixin],
getDefaultProps() {
return {
bsClass: 'well'
};
},
render() {
let classes = this.getBsClassSet();
return (
<di... |
ajax/libs/rxjs/2.4.1/rx.compat.js | Olical/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... |
template/src/layouts/CoreLayout/Sider/index.js | likun7981/react-template-router | import React from 'react'
import { NavLink } from 'react-router-dom'
import './Sider.less'
export default () => (
<div className="sider-container">
<NavLink exact to="/" activeClassName="sider-active">
Home
</NavLink>
{' · '}
<NavLink to="/other" activeClassName="sider-active">
Other
... |
src/Main/AppBackgroundImage.js | Yuyz0112/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import BackgroundOverlay from './Images/background-overlay.png';
import Backgrounds from './Backgrounds';
const styles = {
container: {
position: 'fixed',
top: 0,
bottom: 0,
left: 0,
right: 0,
opacity: 0,
zIndex: -10,
tra... |
example/__tests__/index.android.js | tielan/react-native-form | 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 />
);
});
|
packages/material-ui-icons/src/SdStorageOutlined.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="M18 4v16H6V8.83L10.83 4H18m0-2h-8L4 8v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z" /><path d="M9 7h2v4H9zM12 7h2v4h-2zM15 7h2v4h-2z"... |
ajax/libs/react-cookie/0.1.4/react-cookie.js | dakshshah96/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/client/components/SemiCircleDonutChart.js | Viestinta/viestinta | import React from 'react'
import Highcharts from 'highcharts'
const chartOptions = {
chart: {
plotBackgroundColor: null,
plotBorderWidth: 0,
plotShadow: false
},
title: {
text: 'Tempo<br>(nåverdi)',
align: 'center',
vertica... |
src/player/Player.js | petertrotman/critrolemoments | import React from 'react';
import styled from 'styled-components';
import YouTube from 'react-youtube';
const Container = styled.div`
// From http://webdesignerwall.com/tutorials/css-elastic-videos
> * {
display: block;
position: relative;
padding-bottom: 56.25%;
padding-top: 30px;
height: 0;
... |
app/containers/TrackPreview/index.js | belongapp/belong | import React from 'react';
import Relay from 'react-relay';
import NavLink from 'components/NavLink';
import styles from './styles.css';
import previewCardStyles from 'components/PreviewCard/styles.css';
class Track extends React.Component { // eslint-disable-line react/prefer-stateless-function
static propTypes =... |
client/src/pages/dashboard/FeedItem.js | ccwukong/lfcommerce-react | import React from 'react';
import PropTypes from 'prop-types';
import {
Card,
CardTitle,
} from 'reactstrap';
const FeedItem = props => {
const { backgroundColor, fontColor, title, content, datetime } = props;
return (
<Card body style={{ marginTop: 10, background: backgroundColor || '#fff' }}>
<Card... |
src/components/pages/UserProfile/panels/FeedsEmptyPanel.js | PulseTile/PulseTile-React | import React from 'react';
const FeedsEmptyPanel = props => {
return null;
};
export default FeedsEmptyPanel;
|
ui/src/containers/BasicQueryBuilder/Discrete/Criteria.js | LearningLocker/learninglocker | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Map } from 'immutable';
import Criterion from './Criterion';
import TempCriterion from './TempCriterion';
export default class Criteria extends Component {
static propTypes = {
section: PropTypes.instanceOf(Map),
criteria:... |
ajax/libs/react-router/0.10.1/react-router.min.js | contolini/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.ReactRouter=e()}}(function(){var define;return functi... |
ajax/libs/react/0.10.0-rc1/react.min.js | tholu/cdnjs | /**
* React v0.10.0-rc1
*
* Copyright 2013-2014 Facebook, 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... |
src/scripts/pages/NotFound.page.js | ModuloM/kodokojo-ui | /**
* Kodo Kojo - Software factory done right
* Copyright © 2016 Kodo Kojo (infos@kodokojo.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at ... |
ges-client/src/index.js | martenhz/ges | import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter as Router, Route } from 'react-router-dom'
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import Top from './components/Top';
import Dashboard from './components/Dashboard';
import Categories from './components/Cate... |
test/RowSpec.js | IveWong/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Row from '../src/Row';
describe('Row', function () {
it('uses "div" by default', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Row />
);
assert.equal(React.findDOMNode(instance).nodeName, 'D... |
ajax/libs/forerunnerdb/1.3.919/fdb-core.js | tholu/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... |
ajax/libs/yui/3.10.3/simpleyui/simpleyui.js | ethantw/cdnjs | /**
The YUI module contains the components required for building the YUI seed file.
This includes the script loading mechanism, a simple queue, and the core
utilities for the library.
@module yui
@main yui
@submodule yui-base
**/
/*jshint eqeqeq: false*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The... |
components/Loading/index.js | SaraVieira/30-30 | // @flow
import React from 'react';
import style from './style.css';
const Loading = () => (
<div className={style.loading}>
<div className={style.loadingBar} />
<div className={style.loadingBar} />
<div className={style.loadingBar} />
<div className={style.loadingBar} />
</div>
);
export default ... |
src/svg-icons/editor/attach-file.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorAttachFile = (props) => (
<SvgIcon {...props}>
<path d="M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2... |
ajax/libs/webshim/1.15.1/dev/shims/moxie/js/moxie-html4.js | steadiest/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 ... |
docs/app/Examples/elements/Segment/Variations/SegmentExampleVeryPadded.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Segment } from 'semantic-ui-react'
const SegmentExampleVeryPadded = () => (
<Segment padded='very'>
Very padded content.
</Segment>
)
export default SegmentExampleVeryPadded
|
docs/src/pages/collections/GridPage.js | gocreating/react-tocas | import React from 'react';
import DemoPageLayout from '../../utils/DemoPageLayout';
import PlayGround from '../../utils/PlayGround';
import {
Grid,
Row,
Column,
} from '../../../../lib';
import './GridPage.css';
let GridPage = () => (
<DemoPageLayout title="Grid">
<h1 className="ts dividing header">Tutoria... |
src/index.js | globmont/espionage | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import Game from './Game'
import './index.css';
import { Router, Route, hashHistory } from 'react-router'
ReactDOM.render(
<Router history={hashHistory}>
<Route path="/" component={App}></Route>
<Route path="game/:serverNa... |
ajax/libs/forerunnerdb/1.4.31/fdb-core+views.min.js | BenjaminVanRyseghem/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... |
learnyourreact/node_modules/react/dist/react-with-addons.min.js | roth1002/nodejs-practice | /**
* React (with addons) v0.13.3
*
* 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... |
app/screen/Favorite.js | shuiszhang/fanfou | /**
* Created by shuis on 2017/5/29.
*/
import React, { Component } from 'react';
import {
Button,
Text,
View
} from 'react-native';
class Favorite extends Component{
static navigationOptions = ({ navigation }) => ({
tabBarLabel: '收藏',
});
constructor(props){
super(props);
}
render(){
r... |
src/components/ui/FormCard.js | ntxcode/react-base | import React from 'react';
import './FormCard.css';
const FormCard = props =>
<div className="FormCard">
<h2 className="FormTitle">{props.title}</h2>
{props.children}
</div>;
export default FormCard;
|
ajax/libs/analytics.js/2.8.14/analytics.min.js | coupang/cdnjs | (function umd(require){if("object"==typeof exports){module.exports=require("1")}else if("function"==typeof define&&define.amd){define(function(){return require("1")})}else{this["analytics"]=require("1")}})(function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[... |
ajax/libs/angular-google-maps/2.0.21/angular-google-maps.js | simudream/cdnjs | /*! angular-google-maps 2.0.21 2015-06-04
* AngularJS directives for Google Maps
* git: https://github.com/angular-ui/angular-google-maps.git
*/
;
(function( window, angular, undefined ){
'use strict';
/*
!
The MIT License
Copyright (c) 2010-2013 Google, Inc. http://angularjs.org
Permission is hereby granted, ... |
src/parser/hunter/marksmanship/modules/spells/azeritetraits/InTheRhythm.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import BoringSpellValueText from 'interface/statistics/components/BoringSpellValueText';
import UptimeIcon from 'interface/icons/Uptime';
import HasteIcon from 'interface/icons/Haste';
import AzeritePowerStatisti... |
src/icons/BookmarkIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class BookmarkIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M34 6H14c-2.21 0-3.98 1.79-3.98 4L10 42l14-6 14 6V10c0-2.21-1.79-4-4-4z"/></svg>;}
}; |
src/components/GalleryByReactApp.js | J1aDong/gallery-by-react | require('normalize.css/normalize.css');
require('styles/main.scss');
import React from 'react';
import ReactDOM from 'react-dom';
// 获取图片相关的数据
var imageDatas = require('../data/imageDatas.json');
// 利用自执行函数, 将图片名信息转成图片URL路径信息
imageDatas = (function genImageURL(imageDatasArr)
{
for (var i = 0, j = imageDatasArr.len... |
src/__tests__/Tooltip-test.js | react-mdl/react-mdl | /* eslint-env mocha */
import expect from 'expect';
import React from 'react';
import { render } from './render';
import Tooltip from '../Tooltip';
import Icon from '../Icon';
describe('Tooltip', () => {
it('should render the child and label inside a div', () => {
const element = (
<Tooltip lab... |
ajax/libs/foundation/4.0.4/js/vendor/jquery.min.js | dhenson02/cdnjs | (function(e,t){function n(e){var t=e.length,n=lt.type(e);return lt.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function i(e){var t=wt[e]={};return lt.each(e.match(ut)||[],function(e,n){t[n]=!0}),t}function r(e,n,i,r){if(lt.acceptData(e)){var o,a,s=lt.expan... |
app/assets/plugins/x-editable/dist/jqueryui-editable/js/jqueryui-editable.js | henrino3/control-client | /*! X-editable - v1.5.1
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
* http://github.com/vitalets/x-editable
* Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */
/**
Form with single input element, two buttons and two states: normal/loading.
Applied as jQuery method to DIV tag (not to form tag!... |
examples/react-native/components/Error.js | aksonov/react-native-router-flux | import React from 'react';
import {View, Text, StyleSheet, Animated, Dimensions} from 'react-native';
import Button from 'react-native-button';
import {Actions} from 'react-native-router-flux';
const {height: deviceHeight} = Dimensions.get('window');
const styles = StyleSheet.create({
container: {
position: 'ab... |
framework/scripts/syntaxHTML/static/libs/jquery.js | Chuban/moose | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license*/
(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=f.trim,x=function(e,t){return new x.fn.init... |
src/components/Table/SkeletonTable.js | Bandwidth/shared-components | import React from 'react';
import styled from 'styled-components';
import Skeleton from 'skeletons/Skeleton';
import createArray from 'extensions/createArray';
const SkeletonTableContainer = styled.div`
display: flex;
flex-direction: column;
& > * + * {
margin-top: ${({ marginBetween }) => marginBetween};
... |
src/components/settings-dialog/src/index.js | unindented/puzzle-chrome | import React, {Component, PropTypes} from 'react'
import {Button, Dialog, DialogTitle, DialogContent, DialogActions, Slider} from 'react-mdl'
import {autobind} from 'core-decorators'
import dialogPolyfill from 'dialog-polyfill'
import {t} from 'utils/i18n'
import {minRows, maxRows, defaultRows, minCols, maxCols, defaul... |
src/App.js | domark0721/react-redux-hot-boilerplate | import React, { Component } from 'react';
export default class App extends Component {
render() {
return (
<h1>Hello, world.</h1>
);
}
}
|
test/Scrollbars/dragThumb.js | zxlin/react-custom-scrollbars | import { Scrollbars } from 'react-custom-scrollbars';
import { render, unmountComponentAtNode } from 'react-dom';
import React from 'react';
import simulant from 'simulant';
export default function createTests(scrollbarWidth) {
// Not for mobile environment
if (!scrollbarWidth) return;
let node;
befor... |
src/svg-icons/image/panorama-vertical.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePanoramaVertical = (props) => (
<SvgIcon {...props}>
<path d="M19.94 21.12c-1.1-2.94-1.64-6.03-1.64-9.12 0-3.09.55-6.18 1.64-9.12.04-.11.06-.22.06-.31 0-.34-.23-.57-.63-.57H4.63c-.4 0-.63.23-.63.57 0 .1.02... |
app/javascript/mastodon/components/dropdown_menu.js | im-in-space/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import IconButton from './icon_button';
import Overlay from 'react-overlays/lib/Overlay';
import Motion from '../features/ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
imp... |
src/svg-icons/action/cached.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionCached = (props) => (
<SvgIcon {...props}>
<path d="M19 8l-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.... |
lib/jquery/jquery.min.js | BerneBee/BuildItB | /*! jQuery v1.12.4 | (c) jQuery Foundation | 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 window?window:this,fu... |
examples/example-with-styleguidist/src/components/Button/Button.js | rofrischmann/fela | import React from 'react'
import PropTypes from 'prop-types'
import { createComponent } from 'react-fela'
// declare fela styles
const __buttonStyle = props => ({
padding: '.5em 1.5em',
color: `${props.color || props.theme.colorGrey}`,
'background-color': props.theme.colorWhite,
border: '1px solid currentColor... |
ajax/libs/riot/2.3.0/riot+compiler.js | wout/cdnjs | /* Riot v2.3.0, @license MIT, (c) 2015 Muut Inc. + contributors */
;(function(window, undefined) {
'use strict';
var riot = { version: 'v2.3.0', settings: {} },
// be aware, internal usage
// ATTENTION: prefix the global dynamic variables with `__`
// counter to give a unique id to all the Tag instances
__u... |
ajax/libs/milojs/0.2.0/milo.min.js | cdnjs/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);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports... |
src/components/ShareExperience/InterviewStepsForm/index.js | goodjoblife/GoodJobShare | import React from 'react';
import R from 'ramda';
import { Switch } from 'react-router-dom';
import { scroller } from 'react-scroll';
import ReactGA from 'react-ga';
import ReactPixel from 'react-facebook-pixel';
import qs from 'qs';
import StepControl from './StepControl';
import Step1 from './Step1';
import Step2 fro... |
ajax/libs/yui/3.11.0pr1/scrollview-base/scrollview-base-debug.js | dc-js/cdnjs | YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
* @submodule scrollview-base
*/
// Local vars
var getClassName = Y.ClassNameManager.getClassName,
DOCUMENT = Y.config.doc,
IE = Y.UA.ie... |
views/src/src/routes/Counter/components/Counter.js | Halooo/halooo.me | import React from 'react'
export const Counter = (props) => (
<div style={{ margin: '0 auto' }} >
<h2>Counter: {props.counter}</h2>
<button className='btn btn-default' onClick={props.increment}>
Increment
</button>
{' '}
<button className='btn btn-default' onClick={props.doubleAsync}>
... |
src/svg-icons/maps/local-post-office.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalPostOffice = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/>
</SvgIcon>
);
MapsLocalPostOff... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/Promises.js | cr101/create-react-app | /**
* 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.