path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
examples/cra-kitchen-sink/src/index.js | storybooks/storybook | import React from 'react';
import ReactDOM from 'react-dom';
import global from 'global';
import App from './App';
import './index.css';
const { document } = global;
ReactDOM.render(<App />, document.getElementById('root'));
|
screens/AthleticsScreen.js | Helena-High/school-app | import React from 'react';
import {
Image,
Linking,
Navigator,
ScrollView,
StyleSheet,
Text,
TouchableOpacity,
View,
} from 'react-native';
import Router from '../navigation/Router';
import {
Ionicons
} from '@exponent/vector-icons';
import SchoolDirectionsScreen from '../screens/SchoolDirectionsScre... |
node_modules/node_modules/recharts/demo/component/ScatterChart.js | SerendpityZOEY/Solr-Search-React-UI | import React from 'react';
import { ScatterChart, Scatter, CartesianGrid, Tooltip, Legend,
XAxis, YAxis, ZAxis, ReferenceLine, ReferenceDot, ReferenceArea } from 'recharts';
import { changeNumberOfData } from './utils';
const data01 = [
{ x: 100, y: 200, z: 200 },
{ x: 120, y: 100, z: 260 },
{ x: 170, y: 300, z... |
newclient/scripts/components/admin/detail-view/comment-summary/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
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
Lic... |
node_modules/react-router/es6/Link.js | mrjkc/react-redux | 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/material-ui/5.0.0-alpha.18/modern/internal/svg-icons/ErrorOutline.js | cdnjs/cdnjs | import * as React from 'react';
import createSvgIcon from '../../utils/createSvgIcon';
/**
* @ignore - internal component.
*/
export default createSvgIcon( /*#__PURE__*/React.createElement("path", {
d: "M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 ... |
src/admin/routes.js | squarewave/addons-frontend | import React from 'react';
import { IndexRoute, Route } from 'react-router';
import LoginRequired from 'core/containers/LoginRequired';
import HandleLogin from 'core/containers/HandleLogin';
import App from './containers/App';
import AddonPage from './containers/AddonPage';
import SearchPage from './containers/Search... |
ajax/libs/babel-core/5.4.6/browser-polyfill.min.js | tjbp/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... |
frontend/src/Home.js | buildleft/donorbuddy | import React, { Component } from 'react';
import { Link } from 'react-router';
import logo from './Logo.png';
import User from './User';
import Orgs from './Orgs';
class Home extends Component {
render() {
return (
<div>
<nav id="mainNav" className="navbar navbar-default navbar-fixed-top navbar-c... |
src/svg-icons/image/portrait.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePortrait = (props) => (
<SvgIcon {...props}>
<path d="M12 12.25c1.24 0 2.25-1.01 2.25-2.25S13.24 7.75 12 7.75 9.75 8.76 9.75 10s1.01 2.25 2.25 2.25zm4.5 4c0-1.5-3-2.25-4.5-2.25s-4.5.75-4.5 2.25V17h9v-.75zM... |
components/Table/Holders/Better/ChipBetter.js | mattbajorek/blackJackReact | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import './ChipBetter.scss';
import ChipImage from '../Chips/Chip/ChipImage';
import calWin from '../Card/calWin';
import actions from '../../../../redux/actions';
class ChipBetter extends Component {
constructor() {
super();
this.sta... |
lib/umd/ReactRouter.min.js | 1000hz/react-router | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactRouter=t(require("react")):e.ReactRouter=t(e.React)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].e... |
ajax/libs/rxjs/2.2.24/rx.lite.js | nolsherry/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false
};
v... |
antd-dva/dva-study-demo/src/index.js | JianmingXia/StudyTest | import dva, { connect } from 'dva';
import { Router, Route } from 'dva/router';
import React from 'react';
import styles from './index.less';
// import key from 'keymaster';
const app = dva();
app.model({
namespace: 'count',
state: {
record: 0,
current: 0,
},
reducers: {
add(state) {
console... |
frontend/src/Settings/CustomFormats/CustomFormats/Specifications/EditSpecificationModalContentConnector.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { clearCustomFormatSpecificationPending, saveCustomFormatSpecification, setCustomFormatSpecificationFieldValue, setCustomFormatSpecificationValue } from ... |
src/views/target/Edit.js | anysome/objective | /**
* Created by Layman(http://github.com/anysome) on 16/3/11.
*/
import React from 'react';
import {StyleSheet, Component, ScrollView, View, Text, TouchableOpacity,
LayoutAnimation, Alert} from 'react-native';
import moment from 'moment';
import Button from 'react-native-button';
import {analytics, styles, colors,... |
public/scripts/components/UserCard.js | Ohems/watodo | import React from 'react';
import Card from 'react-material-card';
class UserCard extends React.Component {
render() {
return (
<Card
width={190}
height={70}
borderRadius={2}
level={2}
onOver={ card => card.setLevel(1) }
onOut={ card => card.setLevel(2) }
... |
fields/types/name/NameColumn.js | asifiqbal84/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/src/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/src/components/ItemsTableValue';
var NameColumn = React.createClass({
displayName: 'NameColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object... |
containers/App.js | ap13p/simple-todo | // import React, { Component } from 'react';
// import SomeApp from './SomeApp';
// import { createStore, combineReducers } from 'redux';
// import { Provider } from 'react-redux';
// import * as reducers from '../reducers';
// const reducer = combineReducers(reducers);
// const store = createStore(reducer);
// expor... |
ajax/libs/rxjs/2.2.25/rx.lite.extras.js | drewbaumann/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (factory) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'unde... |
flask/lib/python2.7/site-packages/coverage/htmlfiles/jquery.min.js | zorroz/microblog | /*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
ajax/libs/thorax/2.0.0rc3/thorax.min.js | vanderlee/cdnjs | (function(e,t){"use strict";function _(e){var t=e.length,n=y.type(e);return y.isWindow(e)?!1:e.nodeType===1&&t?!0:n==="array"||n!=="function"&&(t===0||typeof t=="number"&&t>0&&t-1 in e)}function P(e){var t=D[e]={};return y.each(e.match(w)||[],function(e,n){t[n]=!0}),t}function j(e,n,r,i){if(!y.acceptData(e))return;var ... |
universal/components/faq/components/dropdown/Dropdown.js | Amazing-Space-Invader/outline | /**
* Created by invader on 11.07.16.
*/
import React from 'react'
import {connect} from 'react-redux'
import {dropdownToggle} from '../../../../actions/DropdownActions'
import s from './dropdown.pcss'
import classNames from 'classnames/bind'
import FaAngleDown from 'react-icons/lib/fa/angle-down'
class Dropdown ... |
blueocean-material-icons/src/js/components/svg-icons/action/opacity.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionOpacity = (props) => (
<SvgIcon {...props}>
<path d="M17.66 8L12 2.35 6.34 8C4.78 9.56 4 11.64 4 13.64s.78 4.11 2.34 5.67 3.61 2.35 5.66 2.35 4.1-.79 5.66-2.35S20 15.64 20 13.64 19.22 9.56 17.66 8zM6 14c.01-2 .62-3.27 1.76-4.4L12 5.27l4.... |
app/javascript/components/collections/CollectionCardBody.js | nulib/avalon | /*
* Copyright 2011-2020, The Trustees of Indiana University and Northwestern
* University. 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/LICENS... |
__tests__/index.ios.js | feedreaderco/app | import 'react-native';
import React from 'react';
import Index from '../index.ios.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/entypo/Github.js | cox-auto-kc/react-entypo | import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--Github';
let EntypoGithub = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path d="M13.18,11.309c-0.718,0-1.3,0.807-1.3,1.799c0,0.994,0.582,1.801,1.3,1.801s1.3-0.807,1.3-1.801C14.479,1... |
src/svg-icons/communication/chat.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationChat = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 9h12v2H6V9zm8 5H6v-2h8v2zm4-6H6V6h12v2z"/>
</SvgIcon>
);
Communicatio... |
installer/frontend/trail.js | estroz/tectonic-installer | import _ from 'lodash';
import React from 'react';
import { Map as ImmutableMap, Set as ImmutableSet } from 'immutable';
import { commitPhases } from './actions';
import { PLATFORM_TYPE, DRY_RUN } from './cluster-config';
import { CertificateAuthority } from './components/certificate-authority';
import { ClusterType ... |
app/javascript/mastodon/features/status/components/card.js | h-izumi/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import punycode from 'punycode';
const IDNA_PREFIX = 'xn--';
const decodeIDNA = domain => {
return domain
.split('.')
.map(part => part.indexOf(IDNA_PREFIX) === 0 ? punycode.decode(part.slice(IDNA_PREFIX.length)) : part)
... |
src/app/components/Loading.js | moimikey/react-boilerplate | import React from 'react'
import '!style!css!react-loading-bar/dist/index.css'
export default function Loading() {
return (
<div>
<span className="fa fa-cog fa-spin fa-3x fa-fw" />
<span className="sr-only" aria-hidden="true">Loading...</span>
</div>
)
}
|
ajax/libs/rxjs/2.2.2/rx.compat.js | hongkheng/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
(function (window, undefined) {
var freeExports = typeof exports == 'object' && exports,
freeModule = typeof module == 'object' && module && module.exports == freeExports &&... |
src/router.js | SilentTiger/eledis | import React from 'react';
import { Router, Route } from 'dva/router';
import IndexPage from './routes/IndexPage';
function RouterConfig({ history }) {
return (
<Router history={history}>
<Route path="/" component={IndexPage} />
</Router>
);
}
export default RouterConfig;
|
packages/material-ui-icons/src/TurnedInNot.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V5h10v13z" /></g>
, 'TurnedInNot');
|
pages/api/button-base.js | cherniavskii/material-ui | import React from 'react';
import withRoot from 'docs/src/modules/components/withRoot';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from './button-base.md';
function Page() {
return <MarkdownDocs markdown={markdown} />;
}
export default withRoot(Page);
|
src/Components/ListTodo.js | jeanbauer/react-todo-playground-es6-hr-sass | import React from 'react';
import Todo from './Todo.js';
const ListTodo = (props) => (
<div className="group">
{props.data.length ? props.data.map((e,key) => <Todo key={key} time={e.time} description={e.description} />) : 0}
</div>
);
export default ListTodo;
|
example/src/components/mix.js | jerairrest/react-chartjs-2 | import React from 'react';
import {Bar} from 'react-chartjs-2';
const data = {
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
datasets: [{
label: 'Sales',
type:'line',
data: [51, 65, 40, 49, 60, 37, 40],
fill: false,
borderColor: '#EC932F',
backgroundC... |
ajax/libs/primereact/7.0.0/accordion/accordion.esm.js | cdnjs/cdnjs | import React, { Component } from 'react';
import { UniqueComponentId, classNames, ObjectUtils, IconUtils } from 'primereact/utils';
import { CSSTransition } from 'primereact/csstransition';
function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length) len = arr.length;
for (var i = 0, arr2 = new Arr... |
ajax/libs/react/0.14.7/react-dom-server.min.js | Amomo/cdnjs | /**
* ReactDOMServer v0.14.7
*
* 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 dire... |
examples/src/app.js | RassaLibre/react-select | /* eslint react/prop-types: 0 */
import React from 'react';
import Select from 'react-select';
import CustomRenderField from './components/CustomRenderField';
import MultiSelectField from './components/MultiSelectField';
import RemoteSelectField from './components/RemoteSelectField';
import SelectedValuesField from '... |
node_modules/bs-recipes/recipes/gulp.task.sequence/gulpfile.js | nep0muck/cavita-bremen | var gulp = require('gulp');
var browserSync = require('browser-sync');
var sass = require('gulp-sass');
var reload = browserSync.reload;
var through = require("through2");
/**
* A slow task
*/
gulp.task('slow1', function () {
return gulp.src('./app/*.html')
.pipe(slowStream());
});... |
src/server/middleware/render-app.js | tomatau/breko-hub | import React from 'react'
import * as R from 'ramda'
import ReactDOMServer from 'react-dom/server'
import { ChunkExtractor, ChunkExtractorManager } from '@loadable/server'
import { HelmetProvider } from 'react-helmet-async'
import { isEnv, get, isOneOf } from 'app/utils'
import { LOADABLE_FILE } from 'config/paths'
imp... |
packages/accurapp-scripts/scripts/start.js | accurat/accurapp | require('dotenv').config() // gives precedence to the env variables already present
process.env.NODE_ENV = 'development'
process.env.PUBLIC_URL = ''
process.env.GENERATE_SOURCEMAP = 'true'
process.env.TRANSPILE_NODE_MODULES = process.env.TRANSPILE_NODE_MODULES || 'true'
const chalk = require('chalk')
const detect = re... |
packages/material-ui-icons/src/ArrowDropDownCircleOutlined.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 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z" /><path d="M12 15l-4... |
client/node_modules/uu5g03/dist-node/bricks/camera.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import {BaseMixin, ElementaryMixin, Tools} from '../common/common.js';
import './camera.less';
// TODO
// quality of picture -> jpg, png, ...
// choice of camera devices if pc has more cameras
export const Camera = React.createClass({
//@@viewOn:mixins
mixins: [
BaseMixin,
Elem... |
src/components/Checkbox.js | averted/elemental | var blacklist = require('blacklist');
var classNames = require('classnames');
var React = require('react/addons');
var Checkbox = React.createClass({
propTypes: {
className: React.PropTypes.string,
disabled: React.PropTypes.bool,
focusOnMount: React.PropTypes.bool,
indeterminate: React.PropTypes.bool,
inlin... |
newclient/scripts/components/admin/disclosure-filter-by-reviewer/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
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 ... |
ajax/libs/react-native-web/0.12.0/modules/UnimplementedView/index.js | cdnjs/cdnjs | function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENS... |
client/modules/core/components/edit_view/edit_root_view_form.js | bompi88/grand-view | import React from 'react';
import { Field, reduxForm } from 'redux-form';
import { renderTextInput } from '../prototypes/form_prototypes';
class EditRootViewForm extends React.Component {
render() {
const { setDescription, setTitle, change, nodeId, text } = this.props;
return (
<form>
<Field
... |
ajax/libs/yui/3.16.0/scrollview-base/scrollview-base-coverage.js | jakubfiala/cdnjs | /*
YUI 3.16.0 (build 76f0e08)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/scrollview-base/scrollview-base.js']) {
__coverage__['build/scrollview-base/scrollv... |
tests/react_children/component.js | claudiopro/flow | // @flow
import React from 'react';
import type {Node} from 'react';
class MyComponent extends React.Component<{children: Node}, void> {
render(): Node {
// OK: Can pass a node down like so.
return <MyComponent>{this.props.children}</MyComponent>;
}
}
class MyComponentOptional extends React.Component<{ch... |
ajax/libs/yui/3.4.0/event-focus/event-focus-debug.js | karlfreeman/cdnjs | YUI.add('event-focus', function(Y) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Event = Y.Event,
YLang = Y.Lang,
isString = YLang.isString,
useActivate = YLang.isFunction(
Y.DOM.create('<p onbeforeactivate="... |
src/components/header.js | cosmowiki/cosmowiki | import React from 'react';
import Navigation from './navigation';
const Header = ({appUrl}) => {
return (
<header className="pure-u-1">
<div id="brand" className="pure-u-lg-1-6">
<a href="/" title="CosmoWiki.de" rel="home">
<img src="/img/cw_name_30px.jpg" alt="CosmoWiki Title" />
... |
client/containers/Logout/Logout.js | joshjg/explore | import React from 'react';
import { connect } from 'react-redux';
import MenuItem from 'material-ui/MenuItem';
import { logoutRequest } from './actions';
const Logout = props => (
<MenuItem
primaryText="Logout"
onTouchTap={props.handleSubmit}
/>
);
Logout.propTypes = {
handleSubmit: React.PropTypes.fun... |
src/js/containers/ArticleList.js | MurphyL/Coffee | import {get, has} from 'lodash';
import React from 'react'
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {Link} from 'react-router-dom';
import AbsList from '../base/AbsList';
import {fetchIssues} from '../actions/Github';
class ArticleList extends AbsList {
componentWillMount() ... |
node_modules/enzyme/src/ShallowTraversal.js | furgat/sabertoot | import React from 'react';
import isEmpty from 'lodash/isEmpty';
import isSubset from 'is-subset';
import functionName from 'function.prototype.name';
import {
propsOfNode,
splitSelector,
isCompoundSelector,
selectorType,
AND,
SELECTOR,
nodeHasType,
nodeHasProperty,
} from './Utils';
export function c... |
ajax/libs/react-redux/2.0.0/react-redux.js | kennynaoh/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("redux"));
else if(typeof define === 'function' && define.amd)
define(["react", "redux"], factory);
else if(typeof exports === 'object')
e... |
src/svg-icons/hardware/laptop-windows.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareLaptopWindows = (props) => (
<SvgIcon {...props}>
<path d="M20 18v-1c1.1 0 1.99-.9 1.99-2L22 5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2v1H0v2h24v-2h-4zM4 5h16v10H4V5z"/>
</SvgIcon>
);
Hardwar... |
src/templates/Event.js | softwareniagara/softwareniagara.com | import Helmet from 'react-helmet'
import PageTransition from 'gatsby-v2-plugin-page-transitions'
import React from 'react'
import Action from '../components/Action'
import DefaultLayout from '../layouts/Default'
import Event from '../components/Event'
export default ({ pageContext: { event } } = { event: {} }) => {
... |
ajax/libs/rxjs/2.2.21/rx.lite.compat.js | jmusicc/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... |
docs/app/Examples/collections/Grid/Variations/GridExampleColumnCount.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Grid, Image } from 'semantic-ui-react'
const GridExampleColumnCount = () => (
<Grid>
<Grid.Row columns={3}>
<Grid.Column>
<Image src='http://semantic-ui.com/images/wireframe/image.png' />
</Grid.Column>
<Grid.Column>
<Image src='http://semantic... |
ajax/libs/6to5/2.6.3/browser-polyfill.js | Teino1978-Corp/Teino1978-Corp-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/resources/static/bower_components/jqwidgets/demos/react/app/rating/defaultfunctionality/app.js | dhawal9035/WebPLP | import React from 'react';
import ReactDOM from 'react-dom';
import JqxRating from '../../../jqwidgets-react/react_jqxrating.js';
class App extends React.Component {
componentDidMount() {
this.refs.myRating.on('change', (event) => {
document.getElementById('rate').innerHTML = ' ' + event.v... |
src/icons/InfoIcon.js | resmio/mantecao | import React from 'react'
import Icon from '../Icon'
const InfoIcon = props =>
<Icon {...props}>
<g
strokeWidth="1.3"
fill="currentColor"
transform="scale(0.27, 0.27) translate(0,-2)"
>
<path d="M58.7 113C87.4 113 110.7 89.7 110.7 60.9 110.7 32.1 87.4 8.7 58.7 8.7 30 8.7 6.7 32.1 6.7 ... |
powerpiapp/elements/common/CardSection.js | Knapsacks/power-pi-v2 | import React from 'react';
import { View } from 'react-native';
const CardSection = (props) => (
<View style={styles.containerStyles}>
{props.children}
</View>
);
const styles = {
containerStyles: {
borderBottomWidth: 1,
padding: 5,
backgroundColor: '#FFF',
justifyC... |
node_modules/react-router/es/StaticRouter.js | Oritechnology/pubApp | 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 = {... |
node_modules/react-navigation/src/views/Card.js | gunaangs/Feedonymous | /* @flow */
import React from 'react';
import { Animated, StyleSheet } from 'react-native';
import createPointerEventsContainer from './PointerEventsContainer';
import type { NavigationSceneRendererProps } from '../TypeDefinition';
type Props = NavigationSceneRendererProps & {
children: React.Children<*>,
onCo... |
ajax/libs/yui/3.10.2/datatable-body/datatable-body-debug.js | lucasls/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... |
ExampleApp/__tests__/index.ios.js | joonhocho/react-native-google-sign-in | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
modules/__tests__/push-test.js | taion/rrtr | import expect from 'expect'
import React, { Component } from 'react'
import { render, unmountComponentAtNode } from 'react-dom'
import createHistory from '../createMemoryHistory'
import resetHash from './resetHash'
import execSteps from './execSteps'
import Router from '../Router'
import Route from '../Route'
describe... |
test/regressions/tests/Menu/SimpleMenuList.js | AndriusBil/material-ui | // @flow
import React from 'react';
import Paper from 'material-ui/Paper';
import { MenuList, MenuItem } from 'material-ui/Menu';
export default function SimpleMenuList() {
return (
<Paper elevation={8}>
<MenuList>
<MenuItem>Profile</MenuItem>
<MenuItem selected>My Account</MenuItem>
... |
stories/form/form.js | lanyuechen/dh-component | import React from 'react';
import { Input, Form, Button, Select, Row, Col } from '../../src';
const formItemLayout = {
labelCol: {
xs: { span: 24 },
sm: { span: 6 },
},
wrapperCol: {
xs: { span: 24 },
sm: { span: 14 },
},
};
class FormDemo extends React.Component {
constructor(props) {
su... |
src/decorators/withViewport.js | SillyKnight/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from '../../node_modules/react/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height:... |
app/components/Header/index.js | projectcashmere/web-server | import React from 'react';
import { FormattedMessage } from 'react-intl';
import A from './A';
import Img from './Img';
import NavBar from './NavBar';
import HeaderLink from './HeaderLink';
import Banner from './banner.jpg';
import messages from './messages';
class Header extends React.Component { // eslint-disable-l... |
ajax/libs/react/0.14.4/react-dom-server.js | pvnr0082t/cdnjs | /**
* ReactDOMServer v0.14.4
*
* 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 dire... |
ajax/libs/6to5/3.3.3/browser.js | TerryMooreII/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.to5=e()}}(function(){var define,module,exports;return... |
app/javascript/mastodon/components/hashtag.js | blackle/mastodon | import React from 'react';
import { Sparklines, SparklinesCurve } from 'react-sparklines';
import { Link } from 'react-router-dom';
import { FormattedMessage } from 'react-intl';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { shortNumberFormat } from '../utils/numbers';
const Hashtag = ({ hashtag... |
client/App/Shell/Admin/index.js | noamokman/project-starter-sample | import React from 'react';
import {Flex} from 'reflexbox';
import {Card, CardTitle, CardText} from 'material-ui';
export default () => (
<Flex auto column align='center' justify='center'>
<Card>
<CardTitle title='Admin' />
<CardText>
<Flex column>
<span>{'You are an admin!'}</span>
... |
Software/Electron/app/renderer/index.js | s-nlf-fh/PocketSocket | 'use strict';
import {Observable} from 'rx';
import React from 'react';
import {render} from 'react-dom';
import {Router, Route, IndexRoute, Redirect, IndexRedirect} from 'react-router';
import createHistory from 'history/lib/createHashHistory';
import path from 'path';
import remote from 'remote';
import serialInit... |
test/ProgressBarSpec.js | HPate-Riptide/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react-addons-test-utils';
import ReactDOM from 'react-dom';
import ProgressBar from '../src/ProgressBar';
import { getOne, shouldWarn } from './helpers';
function getProgressBarNode(wrapper) {
return ReactTestUtils.findRenderedDOMComponentWithClass(wrapper, 'p... |
public/assets/js/libs/jquery/jquery-1.11.2.js | KimKulot/Capstone_CheckKoBayadKo | /*!
* jQuery JavaScript Library v1.11.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2014-12-17T15:27Z
*/
(function( global, factory ) {
if ... |
karma-js.conf.js | bartkeizer/angular | var sauceConf = require('./sauce.conf');
// Karma configuration
// Generated on Thu Sep 25 2014 11:52:02 GMT-0700 (PDT)
module.exports = function(config) {
config.set({
frameworks: ['jasmine'],
files: [
// Sources and specs.
// Loaded through the System loader, in `test-main.js`.
{pattern... |
my-app/src/components/pages/projectpages/crawler/inputs.js | sThig/jabbascrypt | import React, { Component } from 'react';
import styled from 'styled-components';
class Inputs extends React.Component {
constructor(props) {
super(props);
this.state = {
input1: 0,
input2: 0,
input3: 0,
input4: 0,
input5: 0,
input6: 0,
input7: 0
};
this.han... |
tools/copy.js | magnusbae/fluffy-beat | /**
* React Starter Kit (http://www.reactstarterkit.com/)
*
* Copyright © 2014-2015 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 path from 'path';
import replace from 'replace';
imp... |
ajax/libs/boardgame-io/0.39.6/boardgameio.es.js | cdnjs/cdnjs | import { compose, applyMiddleware, createStore } from 'redux';
import produce from 'immer';
import { stringify, parse } from 'flatted';
import React from 'react';
import PropTypes from 'prop-types';
import io from 'socket.io-client';
function _typeof(obj) {
if (typeof Symbol === "function" && typeof Symbol.iterator ... |
docs/src/app/components/pages/components/AppBar/Page.js | lawrence-yu/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import appBarReadmeText from './README';
import AppBarExampleIcon from './ExampleI... |
ajax/libs/react-router/0.5.3/react-router.js | ericelliott/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,module,export... |
ajax/libs/react/16.0.0-alpha.9/umd/react.production.min.js | BenjaminVanRyseghem/cdnjs | /**
* react.production.min.js v16.0.0-alpha.9
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.React=e()}(this,function(){"use strict";function t(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called wi... |
app/js/components/faqs.js | team-418/main-website | import React from 'react';
import { render } from 'react-dom';
import { Link } from 'react-router';
import PrimaryNavigation from './primary_navigation';
import MainFooter from './main_footer';
class Faqs extends React.Component{
constructor(props) {
super(props);
}
render() {
var questions = [
{
... |
src/widgets/components/PetitionWidgetInfo/index.js | iris-dni/iris-frontend | import React from 'react';
import styles from './petition-widget-info.scss';
import IconAndInfo from 'components/IconAndInfo';
const PetitionWidgetInfo = ({ owner, city }) => (
<ul className={styles.root}>
{city && city.label &&
<li className={styles.item}>
<IconAndInfo
icon='Pin'
... |
modules/Router.js | buddhike/react-router | import React from 'react'
import warning from 'warning'
import createHashHistory from 'history/lib/createHashHistory'
import { createRoutes } from './RouteUtils'
import RoutingContext from './RoutingContext'
import useRoutes from './useRoutes'
import { routes } from './PropTypes'
const { func, object } = React.PropTyp... |
utils/markdown-loader.js | midyan/react-p5 | /**
* React App SDK (https://github.com/kriasoft/react-app)
*
* Copyright © 2015-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.
*/
const MarkdownIt = require('markdown-it');
const hljs ... |
app/src/TemplatePage.js | subnotes/gemini | /**
* Page Component for Template Page
*/
// Import Node Packages
import React, { Component } from 'react';
import PropTypes from 'prop-types';
// Import Local Components
import TemplateContainer from './containers/TemplateContainer';
// Import Helpers
// Component Metadata
const propTypes = {
template: PropTyp... |
packages/material-ui-icons/src/ShoppingBasketTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M3.31 11l2.2 8.01L18.5 19l2.2-8H3.31zM12 17c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z" opacity=".3" /><path d="M22 9h-4.79l-4.38-6.56c-.19-.28-.51-.42-.83-.42s-.64.14-.83.43L6.79 9H2... |
test/SplitButtonSpec.js | lo1tuma/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import SplitButton from '../src/SplitButton';
import MenuItem from '../src/MenuItem';
import Button from '../src/Button';
describe('SplitButton', function () {
let instance;
afterEach(function() {
if (instance && ReactTestUtils.i... |
src/components/ImgFigure.js | xl87-git/gallery-by-react | require('normalize.css/normalize.css');
require('styles/App.css');
import React from 'react';
class ImgFigure extends React.Component{
constructor(props){
super(props);
this.handleClick = this.handleClick.bind(this);
}
/*
imgFigure 点击处理函数
*/
handleClick(e){
e.stopPropagation();
e.preventDefault();
... |
node_modules/express/node_modules/debug/src/browser.js | dumebi/chat | /**
* This is the web browser implementation of `debug()`.
*
* Expose `debug()` as the module.
*/
exports = module.exports = require('./debug');
exports.log = log;
exports.formatArgs = formatArgs;
exports.save = save;
exports.load = load;
exports.useColors = useColors;
exports.storage = 'undefined' != typeof chrom... |
src/containers/Cube.js | pjkarlik/Hacker | import React from 'react';
import { resolve } from '../utils/styles';
import { connect } from 'react-redux';
import getBrowserDimensions from '../utils/getBrowserDimensions';
/**
*/
class Cube extends React.Component {
static displayName = 'Cube';
static propTypes = {
/** Object to render inside Cube **/
c... |
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... |
wp-content/plugins/head-cleaner/includes/js/jquery-1.4.2.min.js | quetz-design/wordpress-sample1 | /*!
* 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.
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.