path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/components/app.js | origo-map/api-documentation | import React from 'react';
import Navigation from './navigation';
import Content from './content';
import RoundedToggle from './rounded_toggle';
import PureRenderMixin from 'react-pure-render/mixin';
import GithubSlugger from 'github-slugger';
import debounce from 'lodash.debounce';
import { brandNames, brandClasses } ... |
ajax/libs/rxjs/3.0.1/rx.lite.extras.compat.js | dhowe/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (factory) {
var objectTypes = {
'function': true,
'object': true
};
var
freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && exports... |
src/containers/Todo.js | elemus/react-redux-todo-example | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { addTask, toggleTask, deleteTask } from '../actions/tasks';
import TodoComponent from '../components/Todo';
export class TodoContainer extends Compon... |
examples/star-wars/js/components/StarWarsRegion.js | SBUtltmedia/relay | /**
* This file provided by Facebook is for non-commercial testing and evaluation
* purposes only. Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNES... |
docs/src/app/components/pages/components/Dialog/ExampleAlert.js | ichiohta/material-ui | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
/**
* Alerts are urgent interruptions, requiring acknowledgement, that inform the user about a situation.
*/
export default class DialogExampleAler... |
src/modules/home/containers/HomeFeaturesContainer/HomeFeaturesContainer.js | cltk/cltk_frontend | import React from 'react';
import { compose } from 'react-apollo';
import homeFeaturesQuery from '../../graphql/queries/homeFeaturesQuery';
import HomeFeatures from '../../components/Home/sections/HomeFeatures';
class HomeFeaturesContainer extends React.Component {
render() {
let worksCount = 0;
let textGroupsCo... |
ajax/libs/yui/3.10.0/datatable-core/datatable-core-debug.js | mikesir87/cdnjs | YUI.add('datatable-core', function (Y, NAME) {
/**
The core implementation of the `DataTable` and `DataTable.Base` Widgets.
@module datatable
@submodule datatable-core
@since 3.5.0
**/
var INVALID = Y.Attribute.INVALID_VALUE,
Lang = Y.Lang,
isFunction = Lang.isFunction,
isObject = Lang.isO... |
app/javascript/mastodon/features/ui/components/column_loading.js | mstdn-jp/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Column from '../../../components/column';
import ColumnHeader from '../../../components/column_header';
import ImmutablePureComponent from 'react-immutable-pure-component';
export default class ColumnLoading extends ImmutablePureComponent {
stat... |
test/test_helper.js | iuriifaevskii/react-youtube-store | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
app/addons/auth/layout.js | garrensmith/couchdb-fauxton | // 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 in writing, software
// distributed un... |
docs/app/Examples/views/Card/Variations/CardExampleFluid.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Card } from 'semantic-ui-react'
const CardExampleFluid = () => (
<Card.Group>
<Card fluid color='red' header='Option 1' />
<Card fluid color='orange' header='Option 2' />
<Card fluid color='yellow' header='Option 3' />
</Card.Group>
)
export default CardExampleFluid
|
test/helpers.js | laran/react-bootstrap | import React from 'react';
import { cloneElement } from 'react';
export function shouldWarn(about) {
console.warn.called.should.be.true;
console.warn.calledWithMatch(about).should.be.true;
console.warn.reset();
}
/**
* Helper for rendering and updating props for plain class Components
* since `setProps` is de... |
docs/src/main.js | balloob/nuclear-js | import React from 'react'
import ItemFilterExample from './components/item-filter-example'
import addScrollClass from './utils/scroll-class'
addScrollClass("scrolled")
render(ItemFilterExample, 'item-filter-example')
function render(component, id) {
var el = document.getElementById(id)
if (el) {
React.render... |
src/docs/examples/ProgressBar/Example10Percent.js | StudentOfJS/ps-react-rod | import React from 'react';
import ProgressBar from 'ps-react-rod/ProgressBar';
/** 10% Progress */
export default function Example10Percent() {
return <ProgressBar percent={10} width={150} />;
} |
src/components/recharts/radial_chart.js | AvaKathrynShaw/My-React-Material-Dashboard | import {RadialBarChart, RadialBar, Legend} from 'Recharts';
import React from 'react';
const data = [
{name: '18-24', uv: 31.47, pv: 2400, fill: '#8884d8'},
{name: '25-29', uv: 26.69, pv: 4567, fill: '#83a6ed'},
{name: '30-34', uv: 15.69, pv: 1398, fill: '#8dd1e1'},
{name: '35-39', uv: 8.22, pv... |
Redux/src/components/app.js | vsanchezrod/React-Redux | import React, { Component } from 'react';
import BookList from '../containers/book-list';
import BookDetail from '../containers/book-detail';
export default class App extends Component {
render() {
return (
<div>
<BookList/>
<BookDetail/>
</div>
);
}
}
|
assets/js/jquery-1.12.0.min.js | Shojy/shojy.github.io | /*! jQuery v1.12.0 | (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/todomvc/src/components/TodoTextInput.spec.js | heyesther/redux | import React from 'react'
import TestUtils from 'react-addons-test-utils'
import TodoTextInput from './TodoTextInput'
const setup = propOverrides => {
const props = Object.assign({
onSave: jest.fn(),
text: 'Use Redux',
placeholder: 'What needs to be done?',
editing: false,
newTodo: false
}, pro... |
CORS/CORS.Client/Scripts/jquery-1.10.2.js | MarcinHoppe/AspNet.WebApi.Security.Samples | /* NUGET: BEGIN LICENSE TEXT
*
* Microsoft grants you the right to use these script files for the sole
* purpose of either: (i) interacting through your browser with the Microsoft
* website or online service, subject to the applicable licensing or use
* terms; or (ii) using the files as included with a Microsoft p... |
app/src/pages/ArchivePage/index.js | udacityalumni/udacity-alumni-fe | import React from 'react';
import cssModules from 'react-css-modules';
import styles from './index.module.scss';
import { ArticleArchiveContainer } from 'containers';
import { AppFooter } from 'components';
const ArchivePage = ({
location,
}) => (
<div className={styles.container}>
<ArticleArchiveContainer loc... |
demo/prism.js | conorhastings/react-syntax-highlighter | import React from 'react';
import { render } from 'react-dom';
import SyntaxHighlighter from '../src/prism';
import ExamplesLinks from './examples-links';
import prismStyles from './styles/prism';
import prismLanguages from '../src/languages/prism/supported-languages';
const availableStyles = prismStyles;
const availa... |
src/components/HomePage.js | pagepress/pagepress | import React from 'react';
import {Link} from 'react-router';
const HomePage = () => {
return (
<div>
<h1>React Slingshot</h1>
<h2>Get Started</h2>
<ol>
<li>Review the <Link to="fuel-savings">demo app</Link></li>
<li>Remove the demo and start coding: npm run remove-demo</li>
... |
src/Landing.js | jcarapia/nationalParks | import React, { Component } from 'react';
import { Link } from 'react-router';
import ClickMap from './ClickMap';
import Footer from './Footer';
import Hero from './Hero';
import NavBar from './NavBar';
class Landing extends Component{
render() {
return (
<div>
<header>
<NavBar />
... |
client/scripts/components/admin/detail-view/commenting-panel/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... |
react-ui/src/containers/HowItWorks/HowItWorks.js | hokustalkshow/find-popular | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
class HowItWorks extends Component {
render() {
return (
<div className="container-sm">
<div className="panel panel-default">
<div className="panel-body">
<h1>How does Proventale work?</h1>
<p>Proventale pulls... |
src/app/components/Footer.js | nnance/react-backbone-flux-example | import React from 'react';
module.exports = React.createClass({
toTop: function(ev) {
ev.preventDefault();
window.scrollTo(0, 0);
},
render: function() {
return <div>
<hr />
<small>
<a href="#" onClick={this.toTop}>Top</a>
</smal... |
node_modules/material-ui/svg-icons/communication/speaker-phone.js | millerman86/CouponProject | '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... |
jenkins-design-language/src/js/components/material-ui/svg-icons/image/panorama-vertical.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const 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.2.06.31C5.16 5.82 5.71 8.91 5.71... |
files/instantsearch-googlemaps/1.1.3/instantsearch-googlemaps.js | Asaf-S/jsdelivr | /*! instantsearch-googlemaps 1.1.3 | © Algolia | github.com/instantsearch/instantsearch-googlemaps */(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("React"), require("ReactDOM"), require("instantsearch"));
el... |
webapp/app/components/SoftwaresByUser/Table/ModalUpdateSoftware/index.js | EIP-SAM/SAM-Solution-Server | //
// Modal to update a software in softwares by user page
//
import React from 'react';
import { Modal, ButtonToolbar, Glyphicon } from 'react-bootstrap';
import LinkContainerButton from 'components/Button';
import styles from 'components/SoftwaresByUser/styles.css';
/* eslint-disable react/prefer-stateless-function... |
src/js/components/icons/base/PlatformEdge.js | linde12/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... |
src/svg-icons/image/camera-alt.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCameraAlt = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="12" r="3.2"/><path d="M9 2L7.17 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-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5... |
app/javascript/mastodon/features/compose/components/action_bar.js | cobodo/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import DropdownMenuContainer from '../../../containers/dropdown_menu_container';
import { defineMessages, injectIntl } from 'react-intl';
const messages = defineMessages({
edit_profile: { id: 'a... |
examples/music/src/search/SearchScreen.js | RNFDigital/rnf-engineering-handbook | /* @flow */
import React from 'react';
import {connect} from 'react-redux'
import * as eventHandlers from './eventHandlers'
import {artistSearchSelectors} from './selectors'
import SearchHistory from '../searchHistory/SearchHistory'
const ArtistRow = ({name, image}) => (
<li className='media'>
<div className='m... |
src/components/EventsSection.js | OpenCollective/frontend | import React from 'react';
import PropTypes from 'prop-types';
import withIntl from '../lib/withIntl';
import { FormattedMessage } from 'react-intl';
import SectionTitle from './SectionTitle';
import EventsWithData from './EventsWithData';
class EventsSection extends React.Component {
static propTypes = {
collec... |
webpack.config.prod.js | steelydylan/atomic-lab | var path = require('path');
var webpack = require('webpack');
module.exports = {
entry: './src/main.jsx',
output: {
path: __dirname,
filename: 'bundle.js'
},
resolve: {
extensions: ['', '.js', '.jsx']
},
node: {
fs: "empty"
},
module: {
loaders: [
{
test: /\.(js|jsx)$/... |
src/components/common/svg-icons/device/brightness-low.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBrightnessLow = (props) => (
<SvgIcon {...props}>
<path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 ... |
packages/material-ui-icons/src/Unarchive.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Unarchive = props =>
<SvgIcon {...props}>
<path d="M20.55 5.22l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.15.55L3.46 5.22C3.17 5.57 3 6.01 3 6.5V19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.49-.17... |
src/svg-icons/image/vignette.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageVignette = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 15c-4.42 0-8-2.69-8-6s3.58-6 8-6 8 2.69 8 6-3.58 6-8 6z"/>
</SvgIcon>... |
ajax/libs/forerunnerdb/1.3.26/fdb-all.min.js | jdh8/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/forerunnerdb/1.3.490/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.8.1/event-custom-base/event-custom-base-coverage.js | Teino1978-Corp/Teino1978-Corp-cdnjs | if (typeof _yuitest_coverage == "undefined"){
_yuitest_coverage = {};
_yuitest_coverline = function(src, line){
var coverage = _yuitest_coverage[src];
if (!coverage.lines[line]){
coverage.calledLines++;
}
coverage.lines[line]++;
};
_yuitest_coverfunc = functio... |
docker/app/app/src/decorators/withViewport.js | JTarball/tetherbox | /*! 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 'fbjs/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height: 768}; // Default si... |
test/flex.js | n7best/react-weui | import React from 'react';
import { shallow } from 'enzyme';
import assert from 'assert';
import WeUI from '../src/index';
const { Flex, FlexItem } = WeUI;
describe('<Flex></Flex>', ()=> {
describe(`<Flex></Flex>`, ()=>{
const wrapper = shallow(
<Flex> <FlexItem>1</FlexItem> </Flex>
)... |
examples/huge-apps/routes/Course/routes/Assignments/components/Sidebar.js | kelsadita/react-router | import React from 'react';
import { Link } from 'react-router';
class Sidebar extends React.Component {
render () {
var assignments = COURSES[this.props.params.courseId].assignments
return (
<div>
<h3>Sidebar Assignments</h3>
<ul>
{assignments.map(assignment => (
... |
lib/components/DropZone.js | Ribeiro/filepizza | import React from 'react'
export default class DropZone extends React.Component {
constructor() {
super()
this.state = { focus: false }
}
onDragEnter() {
this.setState({ focus: true })
}
onDragLeave(e) {
if (e.target !== this.refs.overlay.getDOMNode()) return
this.setState({ focus: fal... |
app/containers/SettingsPage.js | disolution/disolution-app | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import SettingsForm from '../components/SettingsForm';
import * as SettingsActions from '../actions/settings';
function mapStateToProps(state) {
return {
settings: state.settings
};
}
... |
src/svg-icons/editor/space-bar.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorSpaceBar = (props) => (
<SvgIcon {...props}>
<path d="M18 9v4H6V9H4v6h16V9z"/>
</SvgIcon>
);
EditorSpaceBar = pure(EditorSpaceBar);
EditorSpaceBar.displayName = 'EditorSpaceBar';
EditorSpaceBar.muiName ... |
web/js/jquery-1.10.2.min.js | Fatal-Error/filedb | /*! 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... |
frontend/webapp/js/Dashboard.js | damorton/dropwizardheroku-webgateway | import React from 'react';
import Navbar from '../js/Navbar'
import Form from '../js/Form';
import EventList from '../js/EventList';
import TwitterApi from '../js/TwitterApi';
import CryptoCurrencies from '../js/CryptoCurrencies';
import WebsocketChat from '../js/WebsocketChat';
class App extends React.Component {
co... |
ajax/libs/yui/3.10.0pr1/scrollview-base/scrollview-base-coverage.js | tresni/cdnjs | if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/scrollview-base/scrollview-base.js']) {
__coverage__['build/scrollview-base/scrollview-base.js'] = {"path":"build/scrollview-base/scrollview-base.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":... |
packages/mineral-ui-icons/src/IconFreeBreakfast.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconFreeBreakfast(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...icon... |
src/routes/mypolls/index.js | binyuace/vote | import React from 'react';
import Layout from '../../components/Layout';
async function action({ fetch, store }) {
const resp = await fetch('/api/polls', {
method: 'GET',
});
const data = await resp.json();
const state = store.getState();
if (!data) throw new Error('Failed to load the polls feed.');
co... |
frontend/main.js | alyzhao/my-blog | import React from 'react';
import ReactDOM from 'react-dom';
import 'babel-polyfill';
import { AppContainer } from 'react-hot-loader';
import 'font-awesome/css/font-awesome.css';
import 'normalize.css';
import App from './App';
// import './style.less';
const render = function(Component) {
ReactDOM.render(
... |
src/mixins/controllable.js | Zadielerick/material-ui | import React from 'react';
export default {
propTypes: {
onChange: React.PropTypes.func,
value: React.PropTypes.oneOfType([
React.PropTypes.string,
React.PropTypes.array,
]),
valueLink: React.PropTypes.shape({
value: React.PropTypes.string.isRequired,
requestChange: React.Pro... |
packages/material-ui-icons/src/ContactPhoneRounded.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="M22 3H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3z... |
js/components/card/card-list.js | soltrinox/MarketAuth.ReactNative |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Button, Icon, Card, CardItem, Text } from 'native-base';
import styles from './styles';
const {
replaceAt,
} = actions;
clas... |
packages/editor/src/components/Controls/BlockType/BlockType.js | boldr/boldr | /* eslint-disable react/no-unused-prop-types */
/* @flow */
import React from 'react';
import type { Node } from 'react';
import { RichUtils } from 'draft-js';
// $FlowIssue
import type { EditorState } from 'draft-js';
import { getSelectedBlocksType } from '../../../utils';
import BlockTypeLayout from './BlockTypeLay... |
app/routes.js | kme211/srt-maker | // @flow
import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './containers/App';
import HomePage from './containers/HomePage';
export default (
<Route path="/" component={App}>
<IndexRoute component={HomePage} />
</Route>
);
|
ajax/libs/ember-data.js/2.7.0/ember-data.js | jonobr1/cdnjs | (function(){
"use strict";
/*!
* @overview Ember Data
* @copyright Copyright 2011-2016 Tilde Inc. and contributors.
* Portions Copyright 2011 LivingSocial Inc.
* @license Licensed under MIT license (see license.js)
* @version 2.7.0
*/
var loader, define, requireModule, require, requirejs;
(fun... |
src/svg-icons/editor/border-top.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderTop = (props) => (
<SvgIcon {...props}>
<path d="M7 21h2v-2H7v2zm0-8h2v-2H7v2zm4 0h2v-2h-2v2zm0 8h2v-2h-2v2zm-8-4h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2v-2H3v2zm0-4h2V7H3v2zm8 8h2v-2h-2v2zm8-8h2V7h-2v2zm0 4h... |
src/routes/dashboard/components/cpu.js | IssaTan1990/antd-admin | import React from 'react'
import PropTypes from 'prop-types'
import styles from './cpu.less'
import { color } from '../../../utils'
import CountUp from 'react-countup'
import { LineChart, Line, XAxis, YAxis, CartesianGrid, ResponsiveContainer } from 'recharts'
const countUpProps = {
start: 0,
duration: 2.75,
use... |
src/containers/search.js | MoveOnOrg/mop-frontend | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import SearchComponent from 'LegacyTheme/search'
const Search = ({ query, selectState, pageNumber }) => (
<SearchComponent
query={query}
pageNumber={pageNumber}
selectState={selectState}
/>
)
Search.pro... |
packages/bonde-admin/src/components/color-picker/index.js | ourcities/rebu-client | import PropTypes from 'prop-types'
import React from 'react'
import { connect } from 'react-redux'
import { SketchPicker } from 'react-color'
import classnames from 'classnames'
import themes from './themes'
import * as ColorPickerActions from './actions'
export const ColorPicker = ({
className,
theme,
showColo... |
app/javascript/mastodon/features/domain_blocks/index.js | summoners-riftodon/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... |
client/src/pages/payment/payments/downloadButton/index.js | csleary/nemp3 | import { faCloudDownloadAlt, faCog, faInfoCircle } from '@fortawesome/free-solid-svg-icons';
import { shallowEqual, useSelector } from 'react-redux';
import Button from 'components/button';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { Link } from 'react-router-dom';
import React from 'reac... |
example/index.android.js | CubeSugar/react-native-GPUImage | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
} from 'react-native';
import Root from './root';
AppRegistry.registerComponent('example', () => Root);
|
modules/__tests__/Redirect-test.js | meraki/react-router | import expect from 'expect'
import React from 'react'
import { render, unmountComponentAtNode } from 'react-dom'
import createHistory from '../createMemoryHistory'
import Redirect from '../Redirect'
import Router from '../Router'
import Route from '../Route'
describe('A <Redirect>', function () {
let node
beforeE... |
ajax/libs/rxjs/2.4.1/rx.js | khasinski/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/app.js | cameronjroe/react-boilerplate | import React from 'react'
import { render } from 'react-dom'
import Item from './'
render(
<Item />,
document.querySelector('.root')
)
|
files/yasr/2.5.5/yasr.bundled.min.js | Asaf-S/jsdelivr | !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.YASR=t()}}(function(){var t;return function e(t,n,r){... |
manifold/mixins/redirect-if-logged-in.js | mkawalec/manifold | import fluxApp from 'fluxapp';
import React from 'react';
export default (redirectTo) => {
return {
contextTypes: {
flux: React.PropTypes.object.isRequired
},
applyAuth(context) {
return context.getActions('session').get().then(() => {
const session = context.getStore('session').stat... |
node_modules/reactify/node_modules/react-tools/src/utils/__tests__/onlyChild-test.js | SteveDugas/react-dropdown | /**
* 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 applicable law or agree... |
public/social/js/vendor/jquery-1.10.2.min.js | ifoxhz/AppList | /*! 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... |
src/router/index.js | didilinkin/admin-react-antd-example | // 路由根组件
import React from 'react'
import { Switch } from 'react-router-dom'
import { renderRoutes } from 'react-router-config'
import configRoutes from './configRoutes'
const RouteView = ({ route }) => (
<Switch> { renderRoutes(route.routes) } </Switch>
)
const rootRoutes = [
{
component: RouteView... |
fields/types/number/NumberField.js | w01fgang/keystone | import React from 'react';
import Field from '../Field';
import { FormInput } from '../../../admin/client/App/elemental';
module.exports = Field.create({
displayName: 'NumberField',
statics: {
type: 'Number',
},
valueChanged (event) {
var newValue = event.target.value;
if (/^-?\d*\.?\d*$/.test(newValue)) {
... |
docs/app/Examples/views/Statistic/Variations/StatisticExampleHorizontalGroup.js | shengnian/shengnian-ui-react | import React from 'react'
import { Statistic } from 'shengnian-ui-react'
const StatisticExampleHorizontalGroup = () => (
<Statistic.Group horizontal>
<Statistic>
<Statistic.Value>2,204</Statistic.Value>
<Statistic.Label>Views</Statistic.Label>
</Statistic>
<Statistic>
<Statistic.Value>3... |
src/components/ToiletCode.js | pekkis/kino-kobros | import React from 'react';
import styles from './ToiletCode.pcss';
export default function ToiletCode({ ticket }) {
const stylez = {
'backgroundImage': `url(https://www.finnkino.fi${ticket.img})`
};
return (
<div className={styles.root} style={stylez}>
</div>
);
}
|
public/javascripts/jquery-validation/lib/jquery-1.4.2.js | ludaac/noosfero-mx | /*!
* 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/angular.js/1.1.4/angular-scenario.js | wallin/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(... |
ajax/libs/yasr/2.4.12/yasr.bundled.min.js | htmlstrap/cdnjs | !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.YASR=t()}}(function(){var t;return function e(t,n,r){... |
Libraries/ReactNative/ReactNativeMount.js | 1988fei/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... |
.storybook/components/ButtonStory.js | hellobrian/carbon-components-react | import React from 'react';
import { storiesOf, action } from '@storybook/react';
import Button from '../../components/Button';
const buttonEvents = {
onClick: action('onClick'),
onFocus: action('onFocus'),
className: 'some-class',
};
storiesOf('Buttons', module)
.addWithInfo(
'Primary Buttons',
`
... |
client/admin/users/UsersPage.js | Sing-Li/Rocket.Chat | import { Button, ButtonGroup, Icon } from '@rocket.chat/fuselage';
import React from 'react';
import Page from '../../components/basic/Page';
import VerticalBar from '../../components/basic/VerticalBar';
import { useTranslation } from '../../contexts/TranslationContext';
import { useRouteParameter, useRoute } from '..... |
source/components/PerspectiveButton.react.js | BeethovensWerkstatt/VideApp | import React from 'react';
import PropTypes from 'prop-types';
import { ViewLayouts } from '../redux/layout.constants';
const PerspectiveButton = ({ active, type, hidden, onClick }) => {
const classString = 'perspectiveButton' + (active ? ' active ' : ' ') + type + (hidden ? ' hidden':'');
var content;
... |
packages/react/src/components/DataTable/TableRow.js | carbon-design-system/carbon-components | /**
* 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 PropTypes from 'prop-types';
import omit from 'lodash.omit';
import cx from 'classnames';
import { settings... |
src/components/product_icon.js | tomfloresa/Furni | import React, { Component } from 'react';
class ProductIcon extends Component {
render() {
const {source, header} = this.props;
return (
<div className="icon-holder">
<img src={source} alt=""/>
<h3 className="text-center">{header}</h3>
</div>
);
}
}
export default ProductI... |
src/components/views/register-active-table.js | HuangXingBin/goldenEast | import React from 'react';
import { Table } from 'antd';
import { Link } from 'react-router';
// In the fifth row, other columns are merged into first column
// by setting it's colSpan to be 0
const RegisterActiveTable = React.createClass({
getColumns(){
const columns = [{
title: '居间商名称',
dataIndex: 'jujia... |
examples/huge-apps/routes/Calendar/components/Calendar.js | schnerd/react-router | import React from 'react'
class Calendar extends React.Component {
render() {
const events = [
{ id: 0, title: 'essay due' }
]
return (
<div>
<h2>Calendar</h2>
<ul>
{events.map(event => (
<li key={event.id}>{event.title}</li>
))}
</ul>
... |
test/components/map.js | worldbank-cdrp/disaster-risk-explorer | import React from 'react'
import test from 'ava'
import { shallow } from 'enzyme'
import proxyquire from 'proxyquire'
import mockboxGL from 'mapbox-gl-js-mock'
import DataSelection from '../../app/assets/scripts/utils/data-selection'
const { Map } = proxyquire.noCallThru().load('../../app/assets/scripts/components/map... |
v8/development/node_modules/deepmerge/dist/umd.js | BigBoss424/portfolio | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.deepmerge = factory());
}(this, (function () { 'use strict';
var isMergeableObject = function isMergeableObject(value) {
r... |
src/views/Components/Buttons/Buttons.js | Cruis-R/GestionOutil | import React, { Component } from 'react';
class Buttons extends Component {
render() {
return (
<div className="animated fadeIn">
<div className="row">
<div className="col-md-6">
<div className="card">
<div className="card-header">
<strong>Options... |
src/svg-icons/image/collections-bookmark.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCollectionsBookmark = (props) => (
<SvgIcon {...props}>
<path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 10l-2.5-1.5L15 12V4h5v8z"/>... |
docs/app/src/components/PageHeader.js | tercenya/compendium | import React from 'react';
const PageHeader = React.createClass({
render() {
return (
<div className="compendium-header" id="content">
<div className="container">
<h1>{this.props.title}</h1>
<p>{this.props.subTitle}</p>
</div>
</div>
);
}
});
export default ... |
resources/assets/admin/components/SignupGallery.js | DoSomething/northstar | import React from 'react';
import gql from 'graphql-tag';
import { get, map } from 'lodash';
import { useQuery } from '@apollo/react-hooks';
import Empty from './Empty';
import Shell from './utilities/Shell';
import SignupCard, { SignupCardFragment } from './SignupCard';
import { updateQuery } from '../helpers';
cons... |
examples/InputCheckbox.js | jhernandezme/react-materialize | import React from 'react';
import Input from '../src/Input';
import Row from '../src/Row';
export default
<Row>
<Input name='group1' type='checkbox' value='red' label='Red' />
<Input name='group1' type='checkbox' value='yellow' label='Yellow' defaultValue='checked' />
<Input name='group1' type='checkbox' v... |
react-projects/recipe-box/webpack.config.js | eddyerburgh/free-code-camp-ziplines | var debug = process.env.NODE_ENV !== "production";
var webpack = require('webpack');
var path = require('path');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports = {
context: path.join(__dirname, "src"),
devtool: debug ? "inline-sourcemap" : null,
entry: "./js/client.js",
module: ... |
ajax/libs/ui-router-extras/0.1.3/ct-ui-router-extras.min.js | menuka94/cdnjs | /** UI-Router Extras v.0.1.3 Monolithic build (all modules) http://christopherthielen.github.io/ui-router-extras/ - MIT License */
!function(t,e){"use strict";"function"==typeof define&&define.amd?define(["angular"],function(t){e(t)}):e("object"==typeof exports?require("angular"):t.angular)}(this,function(t,e){function... |
tests/baselines/reference/tsxStatelessFunctionComponentWithDefaultTypeParameter2.js | weswigham/TypeScript | //// [file.tsx]
import React = require('react')
interface MyComponentProp {
values: string;
}
function MyComponent1<T extends MyComponentProp>(attr: T) {
return <div>attr.values</div>
}
// Error
let i1 = <MyComponent1 values={5}/>;
//// [file.jsx]
define(["require", "exports", "react"], function (requi... |
ajax/libs/jquery/1.4.1/jquery.js | pzp1997/cdnjs | /*!
* jQuery JavaScript Library v1.4.1
* 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.