path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | qwerjkl112/CMPEN482 | import React from 'react';
import { render } from 'react-dom';
// 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';
render(<HelloWorld />, document.getElementById('react-root'));
|
files/core-js/1.0.0/core.js | gregorypratt/jsdelivr | /**
* core-js 1.0.0
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(__e, __g, undefined){
'use strict';
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require f... |
ajax/libs/forerunnerdb/1.3.610/fdb-core+views.js | jonathantneal/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... |
Realization/frontend/czechidm-core/src/content/task/TaskRoutes.js | bcvsolutions/CzechIdMng | import React from 'react';
//
import * as Basic from '../../components/basic';
import * as Advanced from '../../components/advanced';
/**
* Default content (routes) for tasks.
*
* @author Ondřej Kopr
*/
export default class TaskRoutes extends Basic.AbstractContent {
getContentKey() {
return 'content.taks';
... |
src/elements/tr.js | bokuweb/re-bulma | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { getCallbacks } from '../helper/helper';
import styles from '../../build/styles';
export default class Tr extends Component {
static propTypes = {
children: PropTypes.any,
className: PropTypes.string,
style: PropTypes.o... |
node_modules/antd/es/slider/index.js | ZSMingNB/react-news | import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possib... |
src/components/ModalComic.js | laurazenc/react-marvel-comics | import React from 'react';
const ModalComic = (props) => {
const comic = props.comic.data;
const thumbnail = comic.thumbnail.path + '.' + comic.thumbnail.extension;
const isFavorited = comic.isFavorited;
const sectionStyle = {
backgroundImage: `url(${thumbnail})`
};
const creators = comic.creators.ite... |
src/components/Page.js | dialob/dialob-fill-ui | /**
* Copyright 2016 ReSys OÜ
*
* 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... |
src/Illuminate/Foundation/Console/Presets/react-stubs/Example.js | jimrubenstein/laravel-framework | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
export default class Example extends Component {
render() {
return (
<div className="container">
<div className="row">
<div className="col-md-8 col-md-offset-2">
... |
js/react/catch-of-the-day/node_modules/react-scripts/template/src/App.js | austinjalexander/sandbox | 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>
... |
client/src/index.js | koi-science/incubator-server | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, browserHistory } from 'react-router'
import routes from './routes';
import './css/index.css';
ReactDOM.render(
<Router history={browserHistory} routes={routes}/>,
document.getElementById('root')
);
|
ajax/libs/flocks.js/0.14.5/flocks.js | athanclark/cdnjs | /** @jsx React.DOM */
/* jshint node: true, browser: true, newcap: false */
/**
* The Flocks library module.
*
* @module Flocks
* @main Flocks
*/
// if it's in a <script> it's defined already
// otherwise assume commonjs
if (typeof React === 'undefined') {
var React = require('react'... |
ajax/libs/aui/5.4.1/aui/js/aui-dependencies.js | mkoryak/cdnjs | !function(a,b){function c(a){var b=ob[a]={};return $.each(a.split(bb),function(a,c){b[c]=!0}),b}function d(a,c,d){if(d===b&&1===a.nodeType){var e="data-"+c.replace(qb,"-$1").toLowerCase();if(d=a.getAttribute(e),"string"==typeof d){try{d="true"===d?!0:"false"===d?!1:"null"===d?null:+d+""===d?+d:pb.test(d)?$.parseJSON(d)... |
src-client/components/DimensionBox.js | ipselon/structor | /*
* Copyright 2017 Alexander Pustovalov
*
* 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 a... |
src/components/source/mediaSource/SourceGeographyContainer.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { FormattedMessage, injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import withAsyncData from '../../common/hocs/AsyncDataContainer';
import GeoChart, { downloadData } from '../../vis/GeoChart';
import DataCard from '../../comm... |
node_modules/react-router/es/Redirect.js | vallihe/wizarddemo | import React from 'react';
import invariant from 'invariant';
import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils';
import { formatPattern } from './PatternUtils';
import { falsy } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes,
string = _React$PropTypes.st... |
webclient/src/about/Tos.js | jadiego/bloom | import React, { Component } from 'react';
import { Container, Header, Segment } from 'semantic-ui-react'
class Tos extends Component {
render() {
return (
<div>
<Segment basic padded>
<Header id="title" textAlign='center' as='h1'>Terms of Service</Header>
... |
ajax/libs/yui/3.16.0/event-focus/event-focus-min.js | xirzec/cdnjs | /*
YUI 3.16.0 (build 76f0e08)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add("event-focus",function(e,t){function u(t,r,u){var a="_"+t+"Notifiers";e.Event.define(t,{_useActivate:o,_attach:function(i,s,o){return e.DOM.isWindow(i)?n._attach([t,fu... |
ajax/libs/react/0.4.1/react.js | jtrussell/cdnjs | /**
* React v0.4.1
*/
(function(e){if("function"==typeof bootstrap)bootstrap("react",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeReact=e}else"undefined"!=typeof window?window.React=e():globa... |
docs/src/app/components/pages/components/Toggle/Page.js | verdan/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 toggleReadmeText from './README';
import ToggleExampleSimple from './Exam... |
src/svg-icons/social/person.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPerson = (props) => (
<SvgIcon {...props}>
<path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/>
</SvgIcon>
);
SocialPerson = pure(Soc... |
src/views/window.js | eric1234/wd | import { ipcRenderer as ipc } from 'electron'
import React from 'react'
export default class extends React.Component {
/*
* A react component generally don't need access to the DOM so this method is
* a no-op. But occasionally it is needed such as for integrating a 3rd party
* JS library. This hook allows t... |
ajax/libs/forerunnerdb/1.3.590/fdb-core+persist.js | hare1039/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... |
components/Icon/index.js | azl397985856/ltcrm-components | import React from 'react';
function flat(arg) {
}
export default props => {
let { type, className = '' } = props;
className += ` anticon anticon-${type}`;
return <i className={className} />;
};
|
node_modules/react-native/node_modules/react-tools/src/modern/types/__tests__/ReactFlowPropTypes-test.js | xiekw2010/WeInstagram | /**
* Copyright 2014-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails react-co... |
ajax/libs/react-bootstrap-typeahead/2.1.1/react-bootstrap-typeahead.js | cdnjs/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-dom"], factory);
else if(typeof exports === 'obje... |
src/parser/shared/modules/resources/mana/ManaLevelChartComponent.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import fetchWcl from 'common/fetchWclApi';
import ManaStyles from 'interface/others/ManaStyles.js';
import ManaLevelGraph from 'interface/others/charts/ManaLevelGraph';
class ManaLevelChartComponent extends React.PureComponent {
static propTypes = {
... |
src/svg-icons/social/sentiment-very-dissatisfied.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialSentimentVeryDissatisfied = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.47 2 12s4.47 10 9.99 10S22 17.53 22 12 17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8... |
src/TabPane.js | sheep902/react-bootstrap | import React from 'react';
import deprecationWarning from './utils/deprecationWarning';
import Tab from './Tab';
const TabPane = React.createClass({
componentWillMount() {
deprecationWarning(
'TabPane', 'Tab',
'https://github.com/react-bootstrap/react-bootstrap/pull/1091'
);
},
render() {
... |
src/components/Contact/Contact.react.js | RMCoder198/chat.susi.ai | import React, { Component } from 'react';
import './Contact.css';
import PropTypes from 'prop-types';
import StaticAppBar from '../StaticAppBar/StaticAppBar.react';
import Footer from '../Footer/Footer.react';
import $ from 'jquery';
import Dialog from 'material-ui/Dialog';
import Close from 'material-ui/svg-icons/navi... |
native-module/voiceNative/index.android.js | deneuv34/tryout-02 | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TouchableOpacity,
NativeModules,
} from 'react-native';
const SpeechToTextModule = NativeModules.SpeechToText;
export default cl... |
src/react/index.js | martinbuberl/boilerplate-web | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(
<App hello="Hello React" />,
document.getElementById('root')
);
|
ajax/libs/reflux/6.0.0/reflux.js | x112358/cdnjs | (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Reflux = f()}}... |
ajax/libs/rxjs/2.3.7/rx.lite.js | tonytomov/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... |
jenkins-design-language/src/js/components/material-ui/svg-icons/social/sentiment-neutral.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const SocialSentimentNeutral = (props) => (
<SvgIcon {...props}>
<path d="M9 14h6v1.5H9z"/><circle cx="15.5" cy="9.5" r="1.5"/><circle cx="8.5" cy="9.5" r="1.5"/><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11... |
imports/plugins/included/social/client/templates/apps/facebook.js | Thalhalla/reaction | /* eslint-disable */
//
// TODO facebook social templates need review to ensure proper use of reaction layouts
//
Template.facebook.onRendered(function () {
let ref;
if (this.data.placement === "footer" && (((ref = this.data.apps.facebook) !== null ? ref.profilePage : void 0) !== null)) { // eslint-disable-line no-... |
src/pages/FlightTrackerPage.js | elstgav/stair-climber | import React from 'react'
import moment from 'moment'
import Helmet from 'react-helmet'
import Person from 'src/lib/Person'
import { getFirebase } from 'src/lib/firebaseAdapter'
import {
DatePicker,
FlightsForm,
} from 'src/components'
export class FlightTrackerPage extends React.Component {
construct... |
frontend/web/angularjs/node_modules/bower/node_modules/inquirer/node_modules/rx/src/core/linq/observable/amb.js | telvin/ss-ajs-03232015 | /**
* Propagates the observable sequence or Promise that reacts first.
*
* @example
* var = Rx.Observable.amb(xs, ys, zs);
* @returns {Observable} An observable sequence that surfaces any of the given sequences, whichever reacted first.
*/
Observable.amb = function () {
var acc = observableNev... |
src/index.js | kevinw123/ReduxBlog | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import promise from 'redux-promise'
import reducers from './reducers';
import PostsIndex from './co... |
IntegrationTests/ImageCachePolicyTest.js | negativetwelve/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
* ... |
src/app.js | lzhang0616/mini-twitter-template | import React, { Component } from 'react';
/**
* Example top level component that renders a child component
*/
export default class App extends Component {
render() {
return (
<div className='container'>
<div className='row'>
</div>
</div>
);
}
}
|
www/src/pages/index.js | avidw/redd | import React from 'react'
import Link from 'gatsby-link'
import { Button, Icon, Container, Divider } from 'semantic-ui-react'
import Header from '../components/Header'
import Footer from '../components/Footer'
import logo from '../../assets/logo.png'
import './index.scss'
const MainPage = () => (
<div className='Ma... |
examples/custom-server/pages/a.js | kevmannn/next.js | import React from 'react'
export default () => <div>a</div>
|
ajax/libs/ag-grid/4.1.0/lib/utils.js | redmunds/cdnjs | /**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v4.1.0
* @link http://www.ag-grid.com/
* @license MIT
*/
var FUNCTION_STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg;
var FUNCTION_ARGUMENT_NAMES = /([^\s,]+)/g;
var Utils = (function () {
... |
lib/utils/server-html.js | guoliim/curritae | import React from 'react'
import PropTypes from 'prop-types'
const Html = props => (
<html lang="en">
<head>
<meta charSet="utf-8" />
<meta httpEquiv="X-UA-Compatible" content="IE=edge" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0 maxim... |
src/browser/auth/Social.js | chad099/react-native-boilerplate | // @flow
import type { State } from '../../common/types';
import React from 'react';
import buttonsMessages from '../../common/app/buttonsMessages';
import { Box, Button } from '../../common/components';
import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import { signIn } from '../../... |
src/components/authenticationFormGroup.js | aleksa95/universal-redux-boilerplate | import React from 'react';
const formGroup = ({input, placeholder, wrapperClassName, inputClassName, errorClassName, type, id, showLabel, labelText, labelClass, meta: {touched, error}}) => (
<div className={wrapperClassName}>
<input {...input} placeholder={placeholder} id={id || ''} className={inputClassName} ty... |
ajax/libs/react-redux-form/0.14.5/ReactReduxForm.min.js | BenjaminVanRyseghem/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("redux")):"function"==typeof define&&define.amd?define(["react","redux"],t):"object"==typeof exports?exports.ReactReduxForm=t(require("react"),require("redux")):e.ReactReduxForm=t(e.React,e.Redux)}(this,function(e... |
node_modules/recharts/demo/component/LineChart.js | SerendpityZOEY/Solr-Search-React-UI | import React from 'react';
import CustomLineDot from './CustomLineDot';
import { changeNumberOfData } from './utils';
import { ResponsiveContainer, LineChart, Line, XAxis, YAxis, ReferenceLine,
ReferenceDot, Tooltip, CartesianGrid, Legend, Brush } from 'recharts';
const data = [
{ name: 'Page A', uv: 400, pv: 2400... |
node_modules/react-icons/md/subdirectory-arrow-right.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdSubdirectoryArrowRight = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m31.6 25l-10 10-2.3-2.3 6-6.1h-18.7v-20h3.4v16.8h15.3l-6-6.1 2.3-2.3z"/></g>
</Icon>
)
export default MdSubdirectoryArrowRight
|
examples/huge-apps/routes/Course/routes/Grades/components/Grades.js | ksivam/react-router | /*globals COURSES:true */
import React from 'react'
class Grades extends React.Component {
render() {
let { assignments } = COURSES[this.props.params.courseId]
return (
<div>
<h3>Grades</h3>
<ul>
{assignments.map(assignment => (
<li key={assignment.id}>{assignment... |
docs/examples/LightGroup/Example1.js | romagny13/react-form-validation | import React from 'react';
import { LightGroup, Input, Label } from 'romagny13-react-form-validation';
/** Normal state*/
const Example1 = () => {
return (
<LightGroup>
<Label htmlFor="my-field">Field</Label>
<Input id="my-field" name="my-field" value="My value" />
... |
docs/src/pages/docs/index.js | adisuryadi/nuclear-js | import React from 'react'
import Redirect from '../../layouts/redirect'
import { BASE_URL } from '../../globals'
export default React.createClass({
render() {
return <Redirect to={BASE_URL} />
}
})
|
src/index.js | andresilveira/yato | import ReactDOM from 'react-dom';
import React from 'react';
import configStore from './services/configStore';
import Root from './components/Root';
ReactDOM.render(
<Root store={configStore()} />,
document.getElementById('app')
);
|
tests/routes/Home/components/HomeView.spec.js | learningnewthings/funfunapp | import React from 'react'
import { HomeView } from 'routes/Home/components/HomeView'
import { render } from 'enzyme'
describe('(View) Home', () => {
let _component
beforeEach(() => {
_component = render(<HomeView />)
})
it('Renders a welcome message', () => {
const welcome = _component.find('h4')
... |
ajax/libs/react-slick/0.3.9/react-slick.js | dc-js/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["Slider"] = factory(... |
ajax/libs/primereact/8.0.0-rc.1/csstransition/csstransition.min.js | cdnjs/cdnjs | this.primereact=this.primereact||{},this.primereact.csstransition=function(n,t,e,o,i,r){"use strict";function c(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}function s(n){if(n&&n.__esModule)return n;var t=Object.create(null);return n&&Object.keys(n).forEach((function(e){if("default"!==e){var o=Object.ge... |
ajax/libs/survey-react/1.0.28/survey.react.min.js | seogi1004/cdnjs | /*!
* surveyjs - Survey JavaScript library v1.0.28
* Copyright (c) 2015-2018 Devsoft Baltic OÜ - http://surveyjs.io/
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&... |
example/app/lazo-react-view/index.js | lazojs/lazo-react-view | define(['lazoView'], function (LazoView) {
'use strict';
return LazoView.extend({
constructor: function (options) {
if (!this.React) {
throw new Error('lazo-react-view: React must be defined, <lazo-react-view>.React');
}
if (!this.Container) {
... |
test/helpers/shallowRenderHelper.js | ford25v6/gallery-react | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
src/i18n-context.js | nayaabkhan/react-polyglot | import React from 'react'
const I18nContext = React.createContext()
export default I18nContext
|
ajax/libs/styled-components/3.3.1/styled-components.es.js | sashberd/cdnjs | import isPlainObject from 'is-plain-object';
import Stylis from 'stylis';
import _insertRulePlugin from 'stylis-rule-sheet';
import React, { Component, cloneElement, createElement } from 'react';
import stream from 'stream';
import PropTypes from 'prop-types';
import hoist from 'hoist-non-react-statics';
import { isVal... |
src/App/App.container.js | NativeForms/framework-src | import React, { Component, PropTypes } from 'react';
import { Container } from 'native-base';
import { connect } from 'react-redux';
import { addNavigationHelpers } from 'react-navigation';
// app
import NavigationContainer from './Navigation';
@connect(
state => ({
nav: state.get('nav'),
}),
dispatch => ({... |
ajax/libs/aui/5.2-m6/js/aui-all.js | simevidas/cdnjs | /*! AUI Flat Pack - version 5.2-m6 - generated 2013-05-29 03:12:37 -0400 */
/*
* jQuery JavaScript Library v1.8.3
* 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
*
* D... |
src/demo-data/data03.js | filipdanic/react-botkit | import React from 'react';
const speed = 1500;
const GIF = <img src="https://media.giphy.com/media/D4FZXy64fpoek/giphy.gif" alt="a cat gif" style={{ height: 150 }} />;
const STYLED = <span>
This is all thanks to <a href="https://jsx.github.io/" target="_blank">JSX</a> and
React being <strong>awesome.</strong>
</sp... |
src/admin/client/modules/productCategories/edit/components/form.js | cezerin/cezerin | import React from 'react';
import { Field, reduxForm } from 'redux-form';
import { TextField } from 'redux-form-material-ui';
import Editor from 'modules/shared/editor';
import { CustomToggle } from 'modules/shared/form';
import ImageUpload from 'modules/shared/imageUpload';
import messages from 'lib/text';
import sty... |
src/svg-icons/av/video-library.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvVideoLibrary = (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-2zm-8 12.5v-9l6 4.5-6 4.5z"/>
</SvgIcon>... |
node_modules/react-icons/io/plus-circled.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const IoPlusCircled = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m17.5 2.5c9.7 0 17.5 7.8 17.5 17.5s-7.8 17.5-17.5 17.5-17.5-7.8-17.5-17.5 7.8-17.5 17.5-17.5z m10 18.8v-2.5h-8.7v-8.8h-2.5v8.8h-8.8v2.5h8.8v8.7h2.5v-8.7h8.7z"/></... |
ajax/libs/vkui/4.25.1/cjs/components/Avatar/Avatar.js | cdnjs/cdnjs | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.AVATAR_DEFAULT_SIZE = ... |
src/svg-icons/device/battery-20.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBattery20 = (props) => (
<SvgIcon {...props}>
<path d="M7 17v3.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V17H7z"/><path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7... |
examples/src/components/Creatable.js | cmpis/react-select | import React from 'react';
import Select from 'react-select';
var CreatableDemo = React.createClass({
displayName: 'CreatableDemo',
propTypes: {
hint: React.PropTypes.string,
label: React.PropTypes.string
},
getInitialState () {
return {
multi: true,
multiValue: [],
options: [
{ value: 'R', labe... |
packages/core/src/client/render.js | boldr/boldr | import React from 'react';
import ReactDOM from 'react-dom';
import { ApolloProvider } from 'react-apollo';
import { ConnectedRouter } from 'react-router-redux';
let started = false;
let Root;
export default function render(
{ apolloClient, reduxStore, history },
component,
container,
callback,
) {
if (star... |
webapp/js/vendor/react/react-with-addons.min.js | zhanrnl/ag | /**
* React (with addons) v0.11.2
*
* 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 r... |
Libraries/Components/Keyboard/Keyboard.js | forcedotcom/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... |
template/__tests__/App-test.js | hammerandchisel/react-native | /**
* @format
*/
import 'react-native';
import React from 'react';
import App from '../App';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
renderer.create(<App />);
});
|
src/js/redux/components/GithubApp.js | daigof/react-redux | import React from 'react'
import GithubListContainer from '../containers/GithubListContainer'
const TodoApp = () => (
<div className='panel panel-default'>
<div className='panel-heading'>Github App</div>
<div className='panel-body'>
<GithubListContainer/>
</div>
</div>
)
export default TodoApp
|
app/containers/DashboardPage/RepoListItem.js | DeekshithShetty/hydra | import React from 'react';
function RepoListItem(props) {
return (
<div>
<p>{props.item.name}</p>
</div>
);
}
RepoListItem.propTypes = {
item: React.PropTypes.object,
};
export default RepoListItem;
|
src/reducers/index.js | kpuno/survey-app | import { combineReducers } from 'redux';
import { routerReducer as routing } from 'react-router-redux';
import auth from './auth';
import { reducer as form } from 'redux-form';
import user from './user';
import currentSurvey from './survey';
import surveyList from './search';
import resultsList from './results';
import... |
src/ui/components/views/Core/ModalHost.js | belng/pure | /* @flow */
import React, { Component } from 'react';
import ReactNative from 'react-native';
import shallowCompare from 'react-addons-shallow-compare';
const {
StyleSheet,
View,
} = ReactNative;
const styles = StyleSheet.create({
container: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
... |
ajax/libs/highmaps/1.1.0/highmaps.src.js | F2X/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highmaps JS v1.1.0 (2015-02-16)
*
* (c) 2009-2014 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, HighchartsAdapter, document, window, navigator, setInterval, clearInterval, clearTi... |
website/sections/Deployment.js | sahat/boilerplate | import React from 'react';
import cx from 'classnames';
const DEPLOYMENT_SVG = (
<svg xmlns="http://www.w3.org/2000/svg" width="16px" height="16px" viewBox="0 0 50 50">
<path d="M 35.34375 -0.09375 C 31.92175 -0.09375 28.7935 1.82125 27.1875 4.78125 C 26.4305 4.35225 25.55025 4.125 24.65625 4.125 C 22.03025 4.12... |
src/controls/Dropdown.js | amvmdev/amvm-ui | import React from 'react';
const Dropdown = (props) => {
const {
meta,
refFn,
children,
source,
valueField,
textField,
optionsLabel,
...sourceProps
} = props;
// this object will have all props for input html element
let targetProps = Obj... |
src/components/PagingTableFooter.js | yiweimatou/yibinghoutai | import React from 'react'
import {TableRow, TableRowColumn, IconButton} from 'material-ui'
import NavigationChevronLeft from 'material-ui/svg-icons/navigation/chevron-left'
import NavigationChevronRight from 'material-ui/svg-icons/navigation/chevron-right'
const styles = {
footerContent: {
float: 'right'
},
... |
src/svg-icons/av/forward-30.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvForward30 = (props) => (
<SvgIcon {...props}>
<path d="M9.6 13.5h.4c.2 0 .4-.1.5-.2s.2-.2.2-.4v-.2s-.1-.1-.1-.2-.1-.1-.2-.1h-.5s-.1.1-.2.1-.1.1-.1.2v.2h-1c0-.2 0-.3.1-.5s.2-.3.3-.4.3-.2.4-.2.4-.1.5-.1c.2 0 .4... |
packages/material-ui-icons/src/DateRangeRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M19 4h-1V3c0-.55-.45-1-1-1s-1 .45-1 1v1H8V3c0-.55-.45-1-1-1s-1 .45-1 1v1H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 15c0 .55-.45 1-1 1H6c-.55 0-1-.45-1-1V9h14v10... |
src/client.js | zolcman/calendartest | /* @flow */
import React from 'react';
import { render, unmountComponentAtNode } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import { Provider } from 'react-redux';
import createHistory from 'history/createBrowserHistory';
import { ConnectedRouter } from 'react-router-redux';
import configureSt... |
wrappers/toml.js | aimanaiman/supernomadfriendsquad | import React from 'react'
import toml from 'toml-js'
import Helmet from 'react-helmet'
import { config } from 'config'
module.exports = React.createClass({
propTypes () {
return {
route: React.PropTypes.object,
}
},
render () {
const data = this.props.route.page.data
return (
<div>
... |
BaseProject/Scripts/jquery-1.9.1.js | jhakasjk/BaseProject | /*!
* 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... |
files/videojs/5.0.0-rc.68/video.js | vvo/jsdelivr | /**
* @license
* Video.js 5.0.0-rc.68 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/master/LICENSE>
*
* Includes vtt.js <https://github.com/mozilla/vtt.js>
* Available under Apache License... |
blueprints/view/files/__root__/views/__name__View/__name__View.js | nowavailable/TDAlloyUI | import React from 'react'
type Props = {
};
export class <%= pascalEntityName %> extends React.Component {
props: Props;
render () {
return (
<div></div>
)
}
}
export default <%= pascalEntityName %>
|
swt1-work/JMJRST-Mosaique/templates/bwslideshow/js/jquery-1.4.3.min.js | tobiasschulz/karlsruhe-kit-swt | /*!
* jQuery JavaScript Library v1.4.3
* 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.
... |
client/src/views/Home/components/news/index.js | DillGromble/TNABT-org | import React from 'react';
import MailListForm from '../../../../components/MailList-Form/MailList-Form';
export default class News extends React.Component {
constructor() {
super();
this.state = { formCompleted: false };
this.finishForm = this.finishForm.bind(this);
}
finishForm() {
this.setS... |
lib/react_non_min.js | Alexandre-Georges/LinkGenerator | /**
* React v0.13.3
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}els... |
.storybook/webpack.config.js | saas-plat/saas-plat-appfx | var path = require('path');
var autoprefixer = require('autoprefixer');
var pxtorem = require('postcss-pxtorem');
const platform = 'web';
// Export a function. Accept the base config as the only param.
module.exports = function(storybookBaseConfig, configType) {
storybookBaseConfig.module.rules[0].exclude = [
/... |
blueocean-material-icons/src/js/components/svg-icons/device/access-time.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const DeviceAccessTime = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67... |
src/Alert.js | jakubsikora/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const Alert = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
onDismiss: React.PropTypes.func,
dismissAfter: React.PropTypes.number,
closeLabel: React.PropTypes.string
},
getD... |
Expression.js | alangpierce/LambdaCalculusPlayground | /**
* View code for expressions.
*
* @flow
*/
'use strict';
import React from 'react';
import {
Image,
Text,
View,
DeviceEventEmitter,
} from 'react-native';
import StatelessComponent from './StatelessComponent'
import {TrackedText, TrackedView} from './TrackedViews'
import type {
DefinitionE... |
ajax/libs/rxjs/2.3.18/rx.lite.extras.js | barcadictni/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,
... |
frontend/routes.js | IGGAMEMAKER/startup-game | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Router from 'react-routi... |
app/javascript/mastodon/components/avatar.js | PlantsNetwork/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { autoPlayGif } from '../initial_state';
export default class Avatar extends React.PureComponent {
static propTypes = {
account: ImmutablePropTypes.map.isRequired,
size: PropType... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.