path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
private/js/jquery/jquery-1.10.2.min.js | mrchucu1/html5easy | /*! 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... |
pootle/static/js/auth/components/SocialSignInForm.js | garthylou/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
'use strict';
import React from 'react';
import { PureRen... |
docs/src/pages/premium-themes/tweeper/components/molecules/ListItemIcon.js | allanalexandre/material-ui | import React from 'react';
import clsx from 'clsx';
import MuiListItemIcon from '@material-ui/core/ListItemIcon';
import { LIST_ITEM_ICON } from '../../theme/core';
const ListItemIcon = ({ className, children, subcategory, ...props }) => (
<MuiListItemIcon
className={clsx(LIST_ITEM_ICON.root, className, subcateg... |
ajax/libs/yui/3.10.2/scrollview-base/scrollview-base-debug.js | gereon/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... |
examples/real-world/index.js | gajus/redux | import 'babel-core/polyfill'
import React from 'react'
import { render } from 'react-dom'
import Root from './containers/Root'
import configureStore from './store/configureStore'
const store = configureStore()
render(
<Root store={store} />,
document.getElementById('root')
)
|
react/test/Component.spec.js | alastairpatrick/spellbound | const { renderToStaticMarkup } = require('react-dom/server');
const sinon = require('sinon');
const { expect } = require('chai');
const { Observable, Computed } = require('../../core');
const React = require('..');
class StatusComponent extends React.Component {
render($) {
let props = this.props;
return <... |
src/modules/ShortText.js | broucz/mvu-react-form | import React from 'react';
import FieldValidationMessage from '../components/FieldValidationMessage';
import {shortText as inputStyle} from '../style';
// -- Model
const model = '';
// -- Update
const UPDATE = 'UPDATE';
const VALIDATE = 'VALIDATE';
const update =
(
{state = model} = {},
{type, value} = {... |
src/dispatchRouteActions.js | adam-26/react-router-dispatcher | // @flow
import React from 'react';
import invariant from 'invariant';
import { matchRoutes } from 'react-router-config';
// TODO: Remove the need for any default parameters
const defaultParams = {
httpResponse: {
statusCode: 200
}
};
function isRouteComponent(routeComponent) {
return React.isVali... |
src/scripts/globals.js | mikah1337/null-terminator | import React from 'react';
// ============ VARIABLES ============ //
var RGB = {R: 0, B: 0, G: 0};
var prev_option = 0; // Temp variable that holds a prev value
// ============ HELPER FUNCTIONS ============ //
export var changeBrightness = (hex, percent, opacity = 1) => {
var isDarkness = percent < 0; ... |
contrib/webui/src/paper/notfound.js | roscopecoltran/papernet | import React from 'react';
import NavBar, { NAVBAR_HOME } from 'components/navbar';
import icon from 'H2O.png';
import './notfound.scss';
const NotFoundView = () => (
<div className="NotFoundView">
<NavBar
activeTab={NAVBAR_HOME}
/>
<div>
<h1>
<img className="d-inline-block align-t... |
ajax/libs/angular.js/1.1.1/angular-scenario.min.js | jacobq/cdnjs | (function(e,t){"use strict";function n(e){var t=gt[e]={};return Z.each(e.split(tt),function(e,n){t[n]=!0}),t}function r(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(mt,"-$1").toLowerCase();if(r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:ft.test(r)?Z... |
packages/react-router-website/components/MarkdownViewer.js | rafrex/react-router | /*eslint react/no-danger:0 */
import React from 'react'
import 'prismjs/themes/prism-tomorrow.css'
const MarkdownViewer = ({ html }) => (
<markdown
dangerouslySetInnerHTML={{
__html: html
}}
/>
)
MarkdownViewer.propTypes = {
html: React.PropTypes.string.isRequired
}
export default MarkdownViewer
|
client/src/pages/app/Landing.js | wujichao/wencheng | import React from 'react'
const Landing = React.createClass({
render() {
return (
<div>
<h1>Landing Page</h1>
<p>欢迎使用, 请先登录</p>
</div>
)
}
});
export default Landing
|
src/svg-icons/file/cloud-done.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloudDone = (props) => (
<SvgIcon {...props}>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96... |
frontend/src/js/core/proptypes/synthesisRequest/sortProptypes.js | npoirey/16AGR | import React from 'react'
const sortProptypes = React.PropTypes.shape({
name: React.PropTypes.string.isRequired,
order: React.PropTypes.oneOf(['ASC', 'DESC']).isRequired,
})
export default sortProptypes
|
src/svg-icons/file/cloud-circle.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloudCircle = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.5 14H8c-1.66 0-3-1.34-3-3s1.34-3 3-3l.14.01C8.58 8.28 10.13 7 12 7c2.21 0 4 1.79... |
plugins/dompdf/www/jquery-1.4.2.js | jasp402/SysGiD | /*!
* jQuery JavaScript Library v1.4.2
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
ajax/libs/material-ui/5.0.0-alpha.38/CardContent/CardContent.min.js | cdnjs/cdnjs | import _extends from"@babel/runtime/helpers/esm/extends";import _objectWithoutPropertiesLoose from"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";const _excluded=["className","component"];import*as React from"react";import PropTypes from"prop-types";import clsx from"clsx";import{unstable_composeClasses as com... |
packages/components/src/DateTimePickers/InputDatePicker/DatePicker.stories.js | Talend/ui | import React from 'react';
import { action } from '@storybook/addon-actions';
import isBefore from 'date-fns/is_before';
import startOfDay from 'date-fns/start_of_day';
import InputDatePicker from './InputDatePicker.component';
import DateManager from '../Date/Manager';
import DatePicker from '../Date/Picker';
expor... |
react-flux-mui/js/material-ui/src/svg-icons/notification/adb.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAdb = (props) => (
<SvgIcon {...props}>
<path d="M5 16c0 3.87 3.13 7 7 7s7-3.13 7-7v-4H5v4zM16.12 4.37l2.1-2.1-.82-.83-2.3 2.31C14.16 3.28 13.12 3 12 3s-2.16.28-3.09.75L6.6 1.44l-.82.83 2.1 2.1C6.14... |
src/hsr.js | jumpsuit/jumpsuit | import React from 'react'
import query from 'query-string'
import hsrPouch from './hsrPouch'
import { store } from './createStore'
const setDevToolsState = state => {
const { liftedStore } = store
liftedStore.dispatch({
type: 'IMPORT_STATE',
nextLiftedState: state,
noRecompute: true
})
}
const getDe... |
examples/dev/src/components/Card/index.js | carteb/carte-blanche | import React from 'react';
import styles from './styles.css';
export default () => (
<div className={styles.card}>
Card l
</div>
);
|
app/javascript/mastodon/features/domain_blocks/index.js | danhunsaker/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debou... |
src/containers/ColourCollection.js | colouroscope/colouroscope | import React from 'react'
import { connect } from 'react-redux'
import ColourGrid from '../components/ColourGrid'
import Panel from '../components/Panel'
import { setPreviewColour, setEditColour } from '../actions'
const mapStateToProps = ({ collection, editor }) => {
const { id } = editor
return {
col... |
src/routes/dashboard/components/browser.js | china2008qyj/DVA-DEMO | import React from 'react'
import PropTypes from 'prop-types'
import { Table, Tag } from 'antd'
import styles from './browser.less'
import { color } from 'utils'
const status = {
1: {
color: color.green,
},
2: {
color: color.red,
},
3: {
color: color.blue,
},
4: {
color: color.yellow,
},... |
code/workspaces/web-app/src/components/app/SideBarButton.js | NERC-CEH/datalab | import React from 'react';
import { withStyles } from '@material-ui/core';
import NavLink from './NavLink';
const styles = (theme) => {
const coreStyle = {
padding: `${theme.spacing(1)}px ${theme.spacing(1)}px`,
margin: `${theme.spacing(0.5)}px 0`,
borderRadius: theme.shape.borderRadius,
};
// Order... |
src/components/App.js | LeraSavchenko/Maysternia | import React from 'react';
import PropTypes from 'prop-types';
import { IntlProvider } from 'react-intl';
import { Provider as ReduxProvider } from 'react-redux';
const ContextType = {
insertCss: PropTypes.func.isRequired,
fetch: PropTypes.func.isRequired,
...ReduxProvider.childContextTypes,
client: PropTypes.... |
ajax/libs/reactive-coffee/1.2.1/reactive-coffee.js | CrossEye/cdnjs | (function() {
var rxFactory,
__slice = [].slice,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = ne... |
ajax/libs/yui/3.6.0/event-custom-base/event-custom-base.js | bryantrobbins/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... |
src/App.js | poc-cookies/reactjs-redux-todo | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>Welcome to React</h2>
... |
ajax/libs/analytics.js/1.3.8/analytics.js | AlicanC/cdnjs | ;(function(){
/**
* Require the given path.
*
* @param {String} path
* @return {Object} exports
* @api public
*/
function require(path, parent, orig) {
var resolved = require.resolve(path);
// lookup failed
if (null == resolved) {
orig = orig || path;
parent = parent || 'root';
var err = new ... |
example12/src/main.js | JoeTheDave/Talk-ReactUpAndRunning |
//main.js
import React from 'react';
import {render} from 'react-dom';
import ApplicationComponent from './components/ApplicationComponent';
render(<ApplicationComponent />, document.getElementById('app')); |
src/screens/Trending/Trending.js | alphasp/pxview | import React, { Component } from 'react';
import { StyleSheet, View, Keyboard } from 'react-native';
import { connect } from 'react-redux';
import { AndroidBackHandler } from 'react-navigation-backhandler';
import TrendingIllustTags from './TrendingIllustTags';
import TrendingNovelTags from './TrendingNovelTags';
impor... |
src/stories/components/loading-sample-with-custom-message.js | kemuridama/rectangle | import React from 'react';
import Loading from '../../components/loading';
export default class LoadingSampleWithCustomMessage extends React.Component {
constructor(props, context) {
super(props.context);
this.state = {
isActive: false
}
}
render() {
const { isActive } = this.state;
r... |
packages/material-ui-icons/src/Pageview.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M11.5 9C10.12 9 9 10.12 9 11.5s1.12 2.5 2.5 2.5 2.5-1.12 2.5-2.5S12.88 9 11.5 9zM20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-3.21 14.21l-2.91-2.91c-.69.44-1.51.7-2.39.... |
ajax/libs/material-ui/5.0.0-alpha.2/esm/TableSortLabel/TableSortLabel.min.js | cdnjs/cdnjs | import _extends from"@babel/runtime/helpers/esm/extends";import _objectWithoutProperties from"@babel/runtime/helpers/esm/objectWithoutProperties";import*as React from"react";import PropTypes from"prop-types";import clsx from"clsx";import ArrowDownwardIcon from"../internal/svg-icons/ArrowDownward";import withStyles from... |
examples/named-components/components/App.js | dlmr/react-router-redial | import React, { Component } from 'react';
import { Link, IndexLink } from 'react-router';
export default class App extends Component {
render() {
const { loading } = this.props;
const style = {
opacity: loading ? 0.5 : 1,
transition: loading ? 'opacity 250ms ease 300ms' : 'false',
};
ret... |
docs/components/Content/Content.js | kradio3/react-mdc-web | import PropTypes from 'prop-types';
import React from 'react';
import classnames from 'classnames';
import Content from '../../../src/Content';
const propTypes = {
children: PropTypes.node,
};
const AppContent = ({ children }) => (
<Content
fixed
style={{
display: "flex",
boxSizing: "border-b... |
src/svg-icons/content/low-priority.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentLowPriority = (props) => (
<SvgIcon {...props}>
<path d="M14 5h8v2h-8zm0 5.5h8v2h-8zm0 5.5h8v2h-8zM2 11.5C2 15.08 4.92 18 8.5 18H9v2l3-3-3-3v2h-.5C6.02 16 4 13.98 4 11.5S6.02 7 8.5 7H12V5H8.5C4.92 5 2 7.... |
ajax/libs/react-dom/15.1.0-alpha.1/react-dom.js | him2him2/cdnjs | /**
* ReactDOM v15.1.0-alpha.1
*
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same... |
client/src/components/ManualsPage.js | BrianLusina/Arco | /**
* Created by lusinabrian on 05/05/17.
*/
import React from 'react';
const ManualPage = () => {
return (
<div className="page" id="page-manuals">
<header className="bp-header cf">
<h1 className="bp-header__title">Manuals</h1>
<p className="bp-header__desc">Based on Ilya Kostin's Dribbble shot <a ... |
svg-icons/navigation/arrow-drop-down-circle.js | dhavalbyteprophecy/material-ui-build | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
client/src/components/Home.js | commandzpdx/habit-calendar | import React from 'react';
import PropTypes from 'prop-types';
import SignUpForm from './SignUpForm';
export default function Home(props) {
return (
<div>
<h1>didju</h1>
<h3>some sort of tagline</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce feugiat ultrices scelerisque... |
src/icons/AlarmOnIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class AlarmOnIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M44 11.44l-9.19-7.71-2.57 3.06 9.19 7.71L44 11.44zM15.76 6.78l-2.57-3.06L4 11.43l2.57 3.06 9.19-7.71zM23.9... |
test/unit/components/UI/QRCode.spec.js | LN-Zap/zap-desktop | import React from 'react'
import { renderWithTheme } from '@zap/test/unit/__helpers__/renderWithTheme'
import { QRCode } from 'components/UI'
describe('component.UI.QRCode', () => {
it('should render correctly', () => {
const tree = renderWithTheme(<QRCode value="qwerty" />).toJSON()
expect(tree).toMatchSnap... |
js/components/Header/5.js | YeisonGomez/RNAmanda |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Container, Header, Title, Content, Button, Icon, Left, Right, Body, Text } from 'native-base';
import { Actions } from 'react-native-router-flux';
import { actions } from 'react-native-navigation-redux-helpers';
import { openDra... |
src/FormControls/Static.js | snadn/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import InputBase from '../InputBase';
import childrenValueValidation from '../utils/childrenValueInputValidation';
class Static extends InputBase {
getValue() {
const {children, value} = this.props;
return children ? children : value;
}
ren... |
app/js/components/ClickCounts.js | schlosser/shortener-web |
import React from 'react';
import PropTypes from 'prop-types';
class ClickCount extends React.Component {
static get propTypes() {
return {
count: PropTypes.number,
label: PropTypes.string,
};
}
render() {
return (
<div className={'click-count last-' + this.props.count}>
<... |
ajax/libs/griddle-react/1.0.0-alpha.24/griddle.js | ahocevar/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["Griddle"] = factory... |
packages/cmf/src/components/ErrorFeedBack/ErrorFeedBack.component.js | Talend/ui | import React from 'react';
import PropTypes from 'prop-types';
import ErrorPanel from '../ErrorPanel';
function ErrorFeedBack(props) {
const content = props.errors.map(error => <ErrorPanel key={error} error={error} />);
if (!props.fullPage) {
return <React.Fragment>{content}</React.Fragment>;
}
const style = {
... |
react/dashboard_example/src/vendor/recharts/demo/component/PieChart.js | webmaster444/webmaster444.github.io | import React from 'react';
import { PieChart, Pie, Legend, Cell, Tooltip, ResponsiveContainer, Sector } from 'recharts';
import { scaleOrdinal, schemeCategory10 } from 'd3-scale';
import { changeNumberOfData } from './utils';
const colors = scaleOrdinal(schemeCategory10).range();
const data01 = [
{ name: 'Group A',... |
app/react-icons/fa/keyboard-o.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaKeyboardO extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m8 25.6v2q0 0.4-0.4 0.4h-2q-0.3 0-0.3-0.4v-2q0-0.3 0.3-0.3h2q0.4 0 0.4 0.3... |
ajax/libs/forerunnerdb/1.3.529/fdb-legacy.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... |
__tests__/index.android.js | MewX/ReactNative-Material-ToDoList | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
src/js/components/icons/base/VolumeLow.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
webapp-src/src/callback.js | babelouest/glewlwyd | /**
*
* Glewlwyd login application
*
* Web application for users to login to Glewlwyd
* Handle password and schemes authentication
*
* Copyright 2019 Nicolas Mora <mail@babelouest.org>
*
*/
import React from 'react';
import ReactDOM from 'react-dom';
import i18next from 'i18next';
import Backend from 'i18... |
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/src/__tests__/ListInlineItem.spec.js | GoogleCloudPlatform/prometheus-engine | import React from 'react';
import { shallow } from 'enzyme';
import { ListInlineItem } from '../';
describe('ListInlineItem', () => {
it('should render children', () => {
const listInlineItem = shallow(<ListInlineItem>Yo!</ListInlineItem>).find('li');
expect(listInlineItem.text()).toBe('Yo!');
});
it('s... |
ajax/libs/yui/3.10.0pr1/datatable-body/datatable-body.js | dhenson02/cdnjs | YUI.add('datatable-body', function (Y, NAME) {
/**
View class responsible for rendering the `<tbody>` section of a table. Used as
the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes.
@module datatable
@submodule datatable-body
@since 3.5.0
**/
var Lang = Y.Lang,
isArray = Lang.isA... |
React Native/Demos/address_book/Views/home.js | AngryLi/note-iOS | /**
* Created by Liyazhou on 16/8/28.
*/
import React from 'react';
import {
View,
Text,
ScrollView,
TouchableHighlight,
StyleSheet
} from 'react-native';
import ItemBlock from './home/itembook';
import Address from './home/address';
import Util from './util';
export default class Home extends ... |
public/js/cat_source/es6/components/header/cattol/SubHeaderContainer.js | matecat/MateCat | import React from 'react'
import _ from 'lodash'
import CatToolConstants from '../../../constants/CatToolConstants'
import CatToolStore from '../../../stores/CatToolStore'
import SegmentSelectionPanel from './bulk_selection_bar/BulkSelectionBar'
import SegmentsFilter from './segment_filter/SegmentsFilter'
import Searc... |
src/javascript/Views/TableData.js | gugamm/FluxBasic | import React from 'react';
export default class TableData extends React.Component {
render() {
let data = this.props.data;
let elements = data.map((person,index) =>
<tr key={index}>
<td>{person.name}</td>
<td>{person.age}</td>
</tr>);
... |
ajax/libs/core-js/0.9.11/library.js | redmunds/cdnjs | /**
* Core.js 0.9.11
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(undefined){
'use strict';
var __e = null, __g = null;
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/*****... |
public/jspm_packages/npm/react-dom@0.14.3/server.js | nayashooter/ES6_React-Bootstrap | /* */
'use strict';
module.exports = require('react/lib/ReactDOMServer');
|
ajax/libs/reactive-coffee/0.0.2/reactive-coffee.js | IonicaBizauKitchen/cdnjs | (function() {
var DepArray, DepCell, DepMgr, Depmap, Ev, MappedDepArray, ObsArray, ObsCell, ObsMap, RawHtml, Recorder, SrcArray, SrcCell, SrcMap, bind, depMgr, ev, events, lagBind, mkMap, mktag, mkuid, nextUid, popKey, recorder, rx, rxt, specialAttrs, tag, tags, _fn, _i, _len, _ref, _ref1, _ref2, _ref3,
__hasProp... |
fields/types/location/LocationFilter.js | snowkeeper/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import { FormField, FormInput, FormRow, SegmentedControl } from 'elemental';
const INVERTED_OPTIONS = [
{ label: 'Matches', value: false },
{ label: 'Does NOT Match', value: true },
];
function getDefaultValue () {
return {
inverted: INVERTED_O... |
public/docs/api/latest/@stdlib/math/base/special/pdifff/benchmark_bundle.js | stdlib-js/www | // modules are defined as an array
// [ module function, map of requireuires ]
//
// map of requireuires is short require name -> numeric require
//
// anything defined in a previous bundle is accessed via the
// orig method which is the requireuire for previous bundles
(function outer (modules, cache, entry) {
//... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ArrayDestructuring.js | dsopel94/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... |
fields/types/datearray/DateArrayFilter.js | Yaska/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import moment from 'moment';
import DayPicker from 'react-day-picker';
import { FormField, FormInput, FormRow, FormSelect } from 'elemental';
const PRESENCE_OPTIONS = [
{ label: 'At least one element', value: 'some' },
{ label: 'No element', value:... |
src/client/ui/game/canvasBox.js | FrozenWar/FrozenWar | import React from 'react';
import { findDOMNode } from 'react-dom';
export default class CanvasBox extends React.Component {
componentDidMount() {
this.props.onLoad(findDOMNode(this));
}
shouldComponentUpdate() {
return false;
}
render() {
return <canvas />;
}
}
|
ajax/libs/rxjs/2.3.2/rx.all.compat.js | tengyifei/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... |
src/routes/Rover/Rover.js | imakatman/picturesfromMars | import React, { Component } from 'react';
const mapStateToProps = (state, ownProps) => {
const latestDay = state[thisRover].most_recent_day;
const chosenDay = state.userChosen.Day;
const chosenPicture = state.userChosen.Camera;
return {
rover: ownProps.rover, // ID
choseCamera: state.userChosen... |
app/containers/FeaturePage/index.js | Frai/Events | /*
* FeaturePage
*
* List all the features
*/
import React from 'react';
import Helmet from 'react-helmet';
import { FormattedMessage } from 'react-intl';
import H1 from 'components/H1';
import messages from './messages';
import List from './List';
import ListItem from './ListItem';
import ListItemTitle from './Li... |
ajax/libs/angular.js/1.1.1/angular-scenario.js | peteygao/cdnjs | /*!
* jQuery JavaScript Library v1.8.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Thu Sep 20 2012 21:13:05 GMT-0400 (Eastern Daylight Time)
*/
(function(... |
src/server.js | hokustalkshow/friend-landing-page | import Express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
import createStore from './redux/create';
import ApiC... |
ajax/libs/foundation/4.0.9/js/vendor/jquery.js | dbeckwith/cdnjs | /*!
* jQuery JavaScript Library v1.9.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-2-4
*/
(function( window, undefined ) {
// Can't do t... |
src/svg-icons/editor/money-off.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorMoneyOff = (props) => (
<SvgIcon {...props}>
<path d="M12.5 6.9c1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-.53.12-1.03.3-1.48.54l1.47 1.47c.41-.17.91-.27 1.51-.27zM5.33 4.06L4.06 ... |
packages/ringcentral-widgets-docs/src/app/pages/Components/LogButton/index.js | u9520107/ringcentral-js-widget | import React from 'react';
import { parse } from 'react-docgen';
import CodeExample from '../../../components/CodeExample';
import ComponentHeader from '../../../components/ComponentHeader';
import PropTypeDescription from '../../../components/PropTypeDescription';
import Demo from './Demo';
// eslint-disable-next-lin... |
src/internal/Backdrop.spec.js | und3fined/material-ui | // @flow weak
/* eslint-env mocha */
import React from 'react';
import { assert } from 'chai';
import { createShallowWithContext } from 'test/utils';
import Backdrop, { styleSheet } from './Backdrop';
describe('<Backdrop />', () => {
let shallow;
let classes;
before(() => {
shallow = createShallowWithConte... |
ui/src/components/quotation/index.js | jollopre/mps | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import QuotationShow from '../quotations/quotationShow';
import CustomerShow from '../customers/customerShow';
import New from '../enquiries/new';
import Compose from '../enquiries/compose';
import Enq... |
test/client/containers/success.js | berkeley-homes/near-miss-positive-intervention | import test from 'tape'
import React from 'react'
import { shallow } from 'enzyme'
import { Success } from '../../../src/client/containers/success.js'
import Header from '../../../src/client/components/header.js'
import BerkeleyLogo from '../../../src/client/components/berkeley_logo.js'
import ThanksMessage from '../..... |
components/Search.js | sturquier/hyne | import React, { Component } from 'react';
import { View, TextInput, Button, TouchableOpacity } from 'react-native';
import { StackNavigator } from 'react-navigation';
import Result from './Result';
class Search extends Component {
constructor(props) {
super(props);
this.state = {
city: 'Paris'
}
}
setCit... |
node_modules/react-navigation/lib-rn/navigators/DrawerNavigator.js | gunaangs/Feedonymous | import React from 'react';
import { Dimensions, Platform } from 'react-native';
import createNavigator from './createNavigator';
import createNavigationContainer from '../createNavigationContainer';
import TabRouter from '../routers/TabRouter';
import DrawerScreen from '../views/Drawer/DrawerScreen';
import DrawerView... |
src/svg-icons/image/filter-center-focus.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterCenterFocus = (props) => (
<SvgIcon {...props}>
<path d="M5 15H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zM12 9... |
src/client/js/components/Pages.js | larbreapages/bookbuilder | import React from 'react';
import InputNumber from 'antd/lib/input-number';
import Row from 'antd/lib/row';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { choosePagesNumber } from '../actions/index';
const Pages = (props) => {
return (<Row>
<p className="title">... |
src/client/ui/widgets/errorBox.js | davdiv/joseficompte | /*
* Copyright (C) 2016 DivDE <divde@laposte.net>
*
* This program 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, either version 3 of the License, or
* (at your option) any later version.
*
* T... |
src/routes/BlogRoute/routes/PostRoute/components/BlogItemPage.js | easingthemes/notamagic | import React from 'react';
import BlogPost from '../../../../../components/Blog/BlogPost/BlogPost';
export const BlogItemPage = React.createClass({
componentWillMount () {
const id = this.props.routeParams.postId || '1';
this.props.fetchBlogItem(id);
},
render () {
const post = this.props.post || {};
cons... |
src/js/components/icons/base/SocialSnapchat.js | odedre/grommet-final | /**
* @description SocialSnapchat SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.... |
components/MenuView.js | siddhantvirmani/finnder | import React from 'react';
import Drawer from 'material-ui/Drawer';
import MenuItem from 'material-ui/MenuItem';
import AppBar from 'material-ui/AppBar';
import IconButton from 'material-ui/IconButton'
class MenuView extends React.Component {
constructor(props, context) {
super(props, context)
this.state =... |
src/svg-icons/hardware/tv.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareTv = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.1-.9-2-2-2zm0 14H3V5h18v12z"/>
</SvgIcon>
);
HardwareTv = pure(Hardwar... |
ajax/libs/react-data-grid/1.0.57/react-data-grid.ui-plugins.js | extend1994/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... |
public/src/demo/MoreAboutRefs.js | codelegant/react-action | /**
* Author: 赖传峰
* Email: laichuanfeng@hotmail.com
* Homepage: http://laichuanfeng.com/
* Date: 2016/7/17
*/
import React from 'react';
export default class MoreAboutRefs extends React.Component {
componentDidMount(){
this._input.focus();
}
render() {
return <input ref={ref=>this._input = ref} />;/... |
client/utils/index.js | abossard/fatbecau.se | import React from 'react';
import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react';
export function createConstants (...constants) {
return constants.reduce((acc, constant) => {
acc[constant] = constant;
return acc;
}, {});
}
export function createReducer (initialState, reducerMap) {
... |
ajax/libs/yui/3.12.0/datatable-body/datatable-body-debug.js | BobbieBel/cdnjs | YUI.add('datatable-body', function (Y, NAME) {
/**
View class responsible for rendering the `<tbody>` section of a table. Used as
the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes.
@module datatable
@submodule datatable-body
@since 3.5.0
**/
var Lang = Y.Lang,
isArray = Lang.isA... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | LianyuMa/angular2-user-form | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
scorecard/static/admin/js/jquery.js | LaneCommunityCollege/digital-scorecard | /*!
* jQuery JavaScript Library v1.4.2
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
wp-content/plugins/timetable/js/timetable.js | jameymcelveen/com.flyingtigersrc.www | jQuery(document).ready(function($){
$(".tt_tabs").bind("tabsbeforeactivate", function(event, ui){
$("html, body").animate({scrollTop: $("#"+$(ui.newTab).children("a").attr("id")).offset().top}, 400);
});
$(".tt_tabs").on("tabsactivate", function(event, ui){
ui.newPanel.find(".image_carousel").trigger('configurat... |
Examples/UIExplorer/NavigatorIOSColorsExample.js | csudanthi/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,
... |
app/components/AccordionItem.js | jcbel/jcbel-weixin | import React from 'react';
import classPrefix from '../decorators/classPrefix';
import classNames from 'classnames';
import transitionEvent from '../utils/TransitionEvent';
/*
* react component Accordion.Item
* */
@classPrefix('accordion-item') class AccordionItem extends React.Component {
constructor(props) ... |
Libraries/Components/TextInput/TextInput.js | Andreyco/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/angular-data/0.5.0/angular-data.js | ruiaraujo/cdnjs | /**
* @author Jason Dobry <jason.dobry@gmail.com>
* @file angular-data.js
* @version 0.5.0 - Homepage <http://jmdobry.github.io/angular-data/>
* @copyright (c) 2014 Jason Dobry <https://github.com/jmdobry/angular-data>
* @license MIT <https://github.com/jmdobry/angular-data/blob/master/LICENSE>
*
* @overview Dat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.